一,自定義yum源
mkdir -p /etc/yum.repos.d/repo_bak/
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo_bak/
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.myhuaweicloud.com/repo/CentOS-Base-7.repo
yum makecache
二,安裝工具包
yum -y install net-tools lftp rsync psmisc vim bash-completion
三,優化系統服務
systemctl stop ntpd postfix
yum -y remove ntp postfix
四,修改時間服務器
vim /etc/chrony.conf
server ntp.myhuaweicloud.com iburst
systemctl enable chronyd
systemctl start chronyd