yum install vim openssl openssh-server net-tools initscripts passwd -y
如果你在运行上面的更新命令时报错,需要依次执行下方命令:
1 2 3
cd /etc/yum.repos.d/ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*