Configuring the Yum source in VMware workstaion

Source: Internet
Author: User

Before the experiment: Prepare two virtual machines, using bridge, same network segment, refer to the following

respectively: 192.168.1.166

192.168.1.177


1 Configure the server side of the Yum source to give a historical record

[Email protected] ~]# mount/dev/cdcrom/mnt


Wuyi [[email protected] ~]# mount/dev/cdcrom/mnt
Ls/mnt
Vi/etc/yum.repos.d/rhel-source.repo This step can be skipped

[Server]
Name=server
Baseurl=file:///mnt
Enabled=1
Gpgcheck=0

The Yum install vim
Yum Install Vsftpd-y
Iptables-f
Service Iptables Stop
cp-rvf/mnt/var/ftp/pub/


Yum Install createrepo-v/var/ftp/pub
ls/var/ftp/pub/
ls/var/ftp/pub/mnt/
Service VSFTPD Restart


On other service services side

Configuration ~]# Vim/etc/yum.repos.d/local.repo Take care of the local name.

[Server]
Name=server
Baseurl=ftp://192.168.1.166/pub/mnt
Enabled=1
Gpgcheck=0

[Highavailability]
Name=highavailability
Baseurl=ftp://192.168.1.166/pub/mnt
Enabled=1
Gpgcheck=0

[LoadBalancer]
Name=loadbalancer
Baseurl=ftp://192.168.1.166/pub/mnt
Enabled=1
Gpgcheck=0

[Resilientstorage]
Name=resilientstorage
Baseurl=ftp://192.168.1.166/pub/mnt
Enabled=1
Gpgcheck=0

[Scalablefilesystem]
Name=scalablefilesystem
Baseurl=ftp://192.168.1.166/pub/mnt
Enabled=1
Gpgcheck=0
~
Finish saving

Pay attention to configure the firewall, do not understand the words directly; ~]# iptables-f

~]# Yum Clean All

~]# Yum list to see if it was successful

This article from the "Double Knife" blog, reproduced please contact the author!

Configuring the Yum source in VMware workstaion

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.