Configure Yum Source 3: LAN configuration yum source, server not networked

Source: Internet
Author: User

Two test servers: server-side 172.16.1.53

Client 172.16.1.59

Between the two servers to be able to ping through


Server-Side software that needs to be installed:

Createrepo createrepo-0.9.8-5.el6.noarch.rpm (centos6.3x64)

vsftp vsftpd-2.2.2-11.el6.x86_64.rpm (centos6.3x64)

[[Email protected] ~] # cd/yumlocal/packages/ into the package storage location

[[email protected]/] # yum Install Createrepo

or [[email protected]]# RPM-IVH createrepo-0.9.8-5.el6.noarch.rpm

[[email protected]/] # yum Install vsftp

or [[email protected]]# RPM-IVH vsftpd-2.2.2-11.el6.x86_64.rpm


FTP Server configuration:

Querying current FTP status: Chkconfig--list |grep vsftpd

[[email protected] Packages] # chkconfig--list |grep vsftpd

VSFTPD 0:off 1:off 2:on 3:on 4:on 5:on 6:off

If the output is off, turn it on

[[email protected] Packages] # chkconfig VSFTPD on

After the first installation, please restart the FTP service after opening:

[[email protected] Packages] # service VSFTPD Restart

If the firewall is not turned off, turn off the firewall

[[email protected] Packages] #/etc/init.d/iptables Stop

The anonymous user of VSFTP is the FTP user of the system, modifies the/etc/passwd, and changes the FTP user's home directory from/var/ftp to the target path/yumlocal.

[[email protected]] # vim/etc/passwd

Ftp:x:14:50:ftp user:/yumlocal:/sbin/nologin

After modification, you can enter the FTP address in your browser and test

FTP Server Configuration Complete



Configure Yum database files and information index files

This directory and the following files are repodata by default on the CentOS CD, so there is no need to build them here. Suggest that you regenerate into one, lest this whole process be unsuccessful

Rhel generates Repodata, for example:

[[Email protected] ~] # createrepo/yumlocal/packages/

[Email protected] packages]# CD repodata/

[[email protected] repodata]# ls

filelists.xml.gz other.xml.gz primary.xml.gz Repomd.xml



Configuring the Client

[[email protected]] # Cpcentos-media.repo Netyum.repo

[[email protected]] # Mvcentos-base.repo Centos-base.repo.ori

[[email protected]] # Mvcentos-media.repo Centos-media.repo.ori

[[email protected]] # vim Netyum.repo

[Netyum] Name customization

Name=netyum Name Customization

Baseurl=ftp://172.16.1.53/packages server-side Yum Source Address

Gpgcheck=0 verification option 1 Close option 0

Enabled=1 Open source 1 off select 0

GPGKEY=FILE:///ETC/PKI/RPM-GPG/RPM-GPG-KEY-CENTOS-6 authentication key, non-mandatory


Make the configuration effective, refresh the list

[[email protected]] # yum Clean All

[[email protected]] # Yum List

There are output results, which represent the correct configuration.


This article is from the "Personal essays" blog, please be sure to keep this source http://sz659918615.blog.51cto.com/9141346/1676375

Configure Yum Source 3: LAN configuration yum source, server not networked

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.