Creating FTP access YUM source

Creating FTP access YUM source

First, install the vsftpd (see step "built in linux vsftpd.docx")

       FTP is mounted on the host A, ftp installation information follows: ftp://192.168.43.300   account password: ftp1 / 12345678

Second, the installation disc CentOS7 copied to the host access path A built in the FTP, FTP access to ensure access to the disc content.

       FTP can set a password, you can access anonymous

     

Third, the configuration profile on the host B yum

[root@client ~]# cd /etc/yum.repos.d/

[root@client yum.repos.d]# ll

总用量 28

-rw-r--r--. 1 root root 1664 11月 30 2016 CentOS-Base.repo

-rw-r--r--. 1 root root 1309 11月 30 2016 CentOS-CR.repo

-rw-r--r--. 1 root root  649 11月 30 2016 CentOS-Debuginfo.repo

-rw-r--r--. 1 root root  314 11月 30 2016 CentOS-fasttrack.repo

-rw-r--r--. 1 root root  630 11月 30 2016 CentOS-Media.repo

-rw-r--r--. 1 root root 1331 11月 30 2016 CentOS-Sources.repo

-rw-r--r--. 1 root root 2893 11月 30 2016 CentOS-Vault.repo

[root@client yum.repos.d]# cp CentOS-Base.repo   CentOS-Base.repobak

[root@client yum.repos.d]# vi CentOS-Base.repo


Modified to the following

[base]

name=CentOS-$releasever - Base

baseurl = ftp: // ftp1: [email protected]/CentOS7

enabled=1

gpgcheck=0

 

Save and exit

yum clean all clear cache

yum makecache establish cache, yum if there is a problem, this step will complain.

yum install httpd -y test to verify normal installation.

Guess you like

Origin www.cnblogs.com/ylovew/p/11620870.html