安装ftp服务:yum install vsftpd

安装后:

CentOS7

启动服务:systemctl start vsftpd

设置开机启动:systemctl enable vsftpd

同时:

CentOS7

设置清除防火墙:iptables -F

设置开机不启动防火墙:systemctl disable firewalld.service

基于ftp服务实现yum网络共享

用rpm -ql vsftpd查看程序下的目录。

基于ftp服务实现yum网络共享

将需要共享在网络上的内容复制到/var/ftp/pub/apps下。

基于ftp服务实现yum网络共享

并创建yum metadata 生成repodata/数据

基于ftp服务实现yum网络共享

createrepo /var/ftp/pub/apps

基于ftp服务实现yum网络共享

到此,已经搭建好。

 

相关文章:

  • 2021-12-10
  • 2021-11-03
  • 2022-12-23
猜你喜欢
  • 2021-12-09
  • 2022-12-23
  • 2019-12-28
  • 2021-04-04
  • 2018-08-26
  • 2018-08-26
  • 2021-04-20
相关资源
相似解决方案