In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1.1. Create a new dvd mount directory
[root@oracle ~] # mkdir / mnt/temp
1.2. Mount dvd to the specified directory (mount the iso file first)
[root@oracle ~] # mount / dev/cdrom / mnt/temp
1.3. Enter the yum.repos.d folder
[root@oracle ~] # cd / etc/yum.repos.d/
1.4. Back up the original repo file
[root@oracle yum.repos.d] # mv rhel-source.repo rhel-source.repo.bak
1.5. Create a new repo file using dvd as the source
[root@oracle yum.repos.d] # vim iso.repo
[Server]
Name=Server
Baseurl= file:///mnt/temp/Server
Enabled=1
Gpgcheck=0
1.6. Clear the original yum information
[root@oracle yum.repos.d] # yum clean all
1.7. Update yum
[root@oracle yum.repos.d] # yum update
The difference between Centos
After mounting
1. Disable the network update method of yum, and simply change the default preferred CentOS-Base.repo to CentOS-Base.repo.bak.
[root@localhost yum.repos.d] # mv CentOS-Base.repo CentOS-Base.repo.bak
2. Configure the local yum source
[root@localhost ~] # vim / etc/yum.repos.d/CentOS-Media.repo
Set
[c6-media]
Name=CentOS-$releasever-Media
Baseurl= file:///media/CentOS/
File:///media/cdrom/
File:///media/cdrecorder/
Gpgcheck=1
Enabled=0
Modify to
[c6-media]
Name=CentOS-$releasever-Media
Baseurl= file:///mnt/temp/
Gpgcheck=1
Enabled=1
Baseurl is modified to the mount directory of DVD, and enabled=1 is enabled for local update mode.
Wq save exit
3 、 yum clean all
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.