In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to configure Yum source optimization", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to configure Yum source optimization.
Set up 163 feeds
NetEase yum source is one of the best yum sources in China, no matter the speed or software version, are very good, set the yum source to 163yum, you can improve the speed of package installation and update, while avoiding some common software versions can not be found. The specific setting method is as follows:
1. Enter the Yum source configuration directory
The code is as follows:
Cd / etc/yum.repos.d
2. Backup the yum source that comes with the system
The code is as follows:
Mv CentOS-Base.repo CentOS-Base.repo.bk
Download NetEase's yum source:
The code is as follows:
Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
3. After updating the playing yum source, execute the following command to update the yum configuration so that the operation takes effect immediately
The code is as follows:
Yum makecache
4. In addition to NetEase, there are other good yum sources in China, such as those of the University of Science and Technology of China and Sohu, which you can download according to your own needs.
The yum source of China University of Science and Technology:
The code is as follows:
Wget http://centos.ustc.edu.cn/CentOS-Base.repo
Yum source for sohu
The code is as follows:
Wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
In theory, these yum source redhat systems and fedora can also be used, but without testing, the webmaster who needs it can test it himself.
Use Cobbler to build your own yum source
Introduction to Cobbler:
Enter the cobller interface, click "Repos", and create a new Repo "create new repo". I have created four yum sources here. Drop down the option next to go, select "Reposync" and check the repo project to synchronize the yum source.
The principle of cobbler to create yum sources is very simple, that is, to synchronize the external yum sources, so when configuring the repo project below, you can select the available yum sources in the "mirror" tab, and when you execute Reposync, cobbler will synchronize the external software packages.
Here we choose x86x64 (64-bit system) for "Arch", "yum" for category "Breed", and external yum source for "mirror".
I use Aliyun's yum source.
The code is as follows:
CentOS-Base: http://mirrors.aliyun.com/centos/6/os/x86_64/
CentOS-updates: http://mirrors.aliyun.com/centos/6/updates/x86_64/
CentOS-extras: http://mirrors.aliyun.com/centos/6/extras/x86_64/
Centos-epel: http://mirrors.aiyun.com/epel/6/x86_64/
Due to the large size of the updated software package, I mounted a separate disk and link it to / var/www/cobbler/repo_mirror/ (the directory where the Yum source software is stored).
The code is as follows:
# create a CentOS-Base.repo file (put it on / var/www/cobbler/ks_mirror/mirror_name (mirro_name is the name of the mirror source you created) so that the server can download and use it)
[core-0]
Name=core
Baseurl= http://192.168.6.170/cobbler/ks_mirror/Centos6.4_mini-x86_64/
Enabled=1
Gpgcheck=0
Priority=1
[centos6.4-x86_64-base]
Name=centos6.4-x86_64-base
Baseurl= http://192.168.6.170/cobbler/repo_mirror/Centos6.4-x86_64-base/
Enabled=1
Priority=99
Gpgcheck=0
[centos6.4-x86_64-updates]
Name=centos6.4-x86_64-update
Baseurl= http://192.168.6.170/cobbler/repo_mirror/Centos6.4-x86_64-update/
Enabled=1
Priority=99
Gpgcheck=0
[centos6.4-x86_64-extras]
Name=centos6.4-x86_64-extras
Baseurl= http://192.168.6.170/cobbler/repo_mirror/Centos6.4-x86_64-extras/
Enabled=1
Priority=99
Gpgcheck=0
[centos6.4-x86_64-epel]
Name=centos6.4-x86_64-epel
Baseurl= http://192.168.6.170/cobbler/repo_mirror/Centos6.4-x86_64-epel/
Enabled=1
Priority=99
Gpgcheck=0
At this point, I believe you have a deeper understanding of "how to configure Yum source optimization". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.