1、关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
2、关闭 SELinux 功能
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
3、关闭NetworkManager
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
4、备份并更换阿里源源
备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
更换阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
5、安装常用软件包
yum install -y bash-completion.noarch epel-release
yum install -y net-tools vim lrzsz wget tree screen lsof tcpdump
6、关闭 postfix
systemctl stop postfix.service
systemctl disable postfix.service