1, download yum configuration source (preferably with NetEase 163 source, can also make other sources)
wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo download to/etc/yum.repos.d/directory
Or
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo download to/etc/yum.repos.d/directory
2. edit Centos6-base-163.repo Replace all $releasever in the file with 6
vi /etc/yumrepos.d/centos6-base-163. Repo
And then execute
:1, $s/$releasever/6/g
2, if the domain name is not able to parse, you can add the following content in/etc/resolv.conf (the previous content can be commented out or emptied):
Search Localdomain
NameServer 218.2.135.1
4. Run Yum Makecache to generate the cache
5. After the configuration is complete, you can install the required software with Yum.
Yum install ...
Linux systems use Yum to install other software or services