After CentOS6.5 is installed, you need to change the yum update source to avoid slow installation from a foreign site. The principle is very simple, that is, to change the update source in the yum configuration file. here, the configuration file in the 163 mirror site is used directly. Change the configuration file as follows: 1. go to the yum configuration file directory cd/etc/yum. repos. d/2. back up the configuration file mvCentOS-Base.repoCentOS-Base.rep
After CentOS6.5 is installed, you need to change the yum update source to avoid slow installation from a foreign site. The principle is very simple, that is, to change the update source in the yum configuration file. here, the configuration file in the 163 mirror site is used directly.
The change method is as follows:
1. enter the yum configuration file directory.
cd /etc/yum.repos.d/
2. back up the configuration file
mv CentOS-Base.repo CentOS-Base.repo.bak
3. Download Configuration 163
Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo # the downloaded file name is CentOS6-Base-163.repo
4. rename
mv CentOS6-Base-163.repo CentOS-Base.repo
5. update the database
yum update