虚拟机挂载光盘配置yum源
**************************************************************************************************
创建目录:mkdir /media/iso
挂载光盘:mount /dev/cdrom /media/iso
配置yum源: cd /etc/yum.repos.d
vi local.repo
--输入以下信息--
[Server]
name=Server
baseurl=file:///media/iso/Server
enabled=1
gpgcheck=0
[HighAvailability]
name=HighAvailability
baseurl=file:///media/iso/HighAvailability
enabled=1
gpgcheck=0
[LoadBalancer]
name=LoadBalancer
baseurl=file:///media/iso/LoadBalancer
enabled=1
gpgcheck=0
[LoadBalancer]
name=LoadBalancer
baseurl=file:///media/iso/LoadBalancer
enabled=1
gpgcheck=0
清理yum源:yum clean all
更新yum源:yum update
查看yum源列表:yum list
网页题目:虚拟机挂载光盘配置yum源-创新互联
标题网址:
http://cdxtjz.com/article/pcesh.html