How to create a new virtual machine mount yum source

1 Enter /etc/yum.repos.d
create a folder bak
to bak in all files in .repo
Here Insert Picture Description
modify dvd.repo
Here Insert Picture Description
reads as follows:
[DVD]
name = DVD
baseurl = File: /// DVD
Enabled = 1
gpgcheck = 0

/etc/rc.d/rc.local contents of
Touch / var / Lock / subsys / local
Mount / dev / CDROM / DVD
systemctl STOP firewalld
the setenforce 0
Run. /etc/rc.d/rc.local

That will automatically execute /etc/rc.d/rc/local mounted automatically at boot

Guess you like

Origin blog.csdn.net/weixin_43232423/article/details/91880586