Centos6系统yum源(2022-09-15亲测可用)

Centos6系统yum源(2022-09-15亲测可用)

1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2、更换centos6yum源(centos6官方源已下线,建议切换centos-vault源)
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo

3、yum clean all && yum makecache
yum clean all && yum makecache

chkconfig sshd on
or
chkconfig –level 2345 sshd on

vim /etc/inittab
id:5:initdefault:
to:
id:3:initdefault: