Build a local area network ftp-yum server

Unprotected configuration: (for beginners)

1. Install createrepo and vsftpd
    yum install createrepo vsftpd

2.mkdir /home/ftp

3.cp -r source directory /home/ftp

4.vi /etc/vsftpd/vsftpd.conf
    Finally add anon_root=/home/ftp and no_anon_password=YES

6.cd /home/ftp

7.createrepo CentOS7-LocalServer/

8. Turn off the firewall and selinux
    systemct disable firewalld
    systemctl stop firewalld
    vi /etc/selinux/config
    Change SELINUX to disabled
    reboot

9.systemctl enable vsftpd

10.systemctl start vsftpd

1. Client configuration source
    vi /etc/yum.repos.d/CentOS7-LocalServer.repo
   
    [CentOS7-LocalServer]
    name=LocalServer
    baseurl=ftp://192.168.1.119/CentOS7-LocalServer
    enable=1
    gpgcheck=0
   
2.yum clean all

3.yum makecache

4. The setup is complete, the LAN ftp-yum server test
    yum install samba

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326656453&siteId=291194637