配置 yum
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.myhuaweicloud.com/repo/CentOS-Base-7.repo
安装工具包
yum -y install net-tools lftp rsync psmisc vim bash-completion createrepo vsftpd ansible lrzsz
创建自定义 yum 源
mkdir /var/ftp/localrepo
cd /var/ftp/localrepo
createrepo .
createrepo --update . 更新
#yum clean all
#yum repolist
systemctl start vsftpd
systemctl enable vsftpd
优化系统服务
systemctl stop postfix ntpd
yum -y remove postfix ntp
yum -y install chrony
vim /etc/chrony.conf
server ntp.myhuaweicloud.com iburst
systemctl enable chronyd
systemctl start chronyd\