In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In this paper, an example is given to describe the method of local YUM configuration on CentOS 6.5 platform. Share with you for your reference, the details are as follows:
Copy / media/CentOS_6.5_Final/ under CD to directory / media/rhel/
Copy and create a directory
Cp-rf / media/CentOS_6.5_Final/ / media/rhel/
Give permissions to directories. If there is a problem later, give permissions.
Chmod-R 777 / media/rhel/
Check the directory / etc/yum.repos.d/
Ls-l / etc/yum.repos.d/total 16 RW Murray. 1 root root 1926 Nov 27 2013 CentOS-Base.repo-rw-r--r--. 1 root root 638 Nov 27 2013 CentOS-Debuginfo.repo-rw-r--r--. 1 root root 630 Nov 27 2013 CentOS-Media.repo-rw-r--r--. 1 root root 3664 Nov 27 2013 CentOS-Vault.repocd / etc/yum.repos.d/
Rename CentOS-Base.repo and CentOS-Debuginfo.repo files to bypass network installation
[root@hz yum.repos.d] # mv CentOS-Base.repo CentOS-Base.repose_ Bak [root @ hz yum.repos.d] # mv CentOS-Debuginfo.repo CentOS-Debuginfo.repo_bak
More is used to view
[root@sl yum.repos.d] # more CentOS-Media.repo
Edit the file, or add a repo file of your own
[root@hz yum.repos.d] # vi CentOS-Media.repo [c6-media] # Library name name=CentOS 6.5 # name describes the baseurl= file:///media/rhel/ # yum source directory, source address gpgcheck=1 # check GPG-KEY,0 is not checked, 1 is to check whether enabled=1 # uses the yum source, 0 is disabled, 1 is not configured when using gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 # gpgcheck=0
Test YUM
Yum list
Clear the yum cache
Yum clean all
I hope what is described in this article will be helpful to the configuration of CentOS server.
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.