安装ftp服务:yum install vsftpd
安装后:
CentOS7
启动服务:systemctl start vsftpd
设置开机启动:systemctl enable vsftpd
同时:
CentOS7
设置清除防火墙:iptables -F
设置开机不启动防火墙:systemctl disable firewalld.service

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

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

并创建yum metadata 生成repodata/数据

createrepo /var/ftp/pub/apps

到此,已经搭建好。