挂载方式

mkdir /mnt/cdrom

加载光盘:

mount /dev/cdrom /mnt/cdrom/

挂载光盘到 /mnt/cdrom/

centos6.8 配置 yum 仓库-LMLPHP

挂载成功

cd /etc/yum.repos.d/

mv CentOS-Base.repo CentOS-Base.repo.bak

vi cdrom.repo

输入一下内容

[cdrom]

name=cdrom

baseurl=file:///mnt/cdrom

enabled=1

gpgcheck=0

执行命令:

yum clean all

yum makecache

测试安装成功

yum -y install tree

centos6.8 配置 yum 仓库-LMLPHP

05-26 21:12