赞
踩
mkdir /mnt/iso
mount -o loop -t iso9660 xxx.iso /mnt/iso/
cd /etc/yum.repos.d/
mkdir bak
mv *.repo bak/
[xxx]# vi private.repo
[private]
name=isofile
baseurl=file:///mnt/iso
enabled=1
gpgcheck=0
gpgkey=file:///mnt/iso/RPM-GPG-KEY-neokylin-release
yum clean all
yum makecache
yum repolist
yum -y install httpd
systemctl start httpd
systemctl enable httpd
systemctl stop firewalld
systemctl disable firewalld
ln -s /mnt/iso /var/www/html
cd /etc/yum.repos.d/
mkdir bak
mv *.repo bak/
[xxx]# cat private.repo
[private]
name=isofile
baseurl=http://10.x.x.x/iso
enabled=1
gpgcheck=0
gpgkey=http://10.x.x.x/iso/RPM-GPG-KEY-neokylin-release
yum clean all
yum makecache
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。