Oracle Linux 6 配置本地光盘源

前端之家收集整理的这篇文章主要介绍了Oracle Linux 6 配置本地光盘源前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1挂载OracleLinux6光盘(以root用户执行)

#mkdir-p/mnt/cdrom

#mount/dev/cdrom/mnt/cdrom

2创建local.repo文件(以root用户执行)

#vi/etc/yum.repos.d/local.repo

[HighAvailability]

name=HighAvailability

baseurl=file:///mnt/cdrom/HighAvailability

enabled=1

gpgcheck=0

[LoadBalancer]

name=LoadBalancer

baseurl=file:///mnt/cdrom/LoadBalancer

enabled=1

gpgcheck=0

[Server]

name=Server

baseurl=file:///mnt/cdrom/Server

enabled=1

gpgcheck=0

3修改public-yum-ol6.repo文件配置(以root用户执行)

#mv/etc/yum.repos.d/public-yum-ol6.repo/etc/yum.repos.d/public-yum-ol6.repo_bak

#vi/etc/yum.repos.d/public-yum-ol6.repo

[oel6_local]

name=oracleEnterpriseLinux6

baseurl=file:///mnt/cdrom/Server/

gpgcheck=0

enabled=1

猜你在找的Oracle相关文章