1、安装常用软件
yum install tree nmap sysstat lrzsz dos2unix wget net-tools ntpdate -y
2、配置yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、时间同步
*/60 * * * * ntpdate cn.pool.ntp.org >/dev/null 2>&1
4、关闭防火墙和selinux
#firewalld
systemctl stop firewalld.service
systemctl disable firewalld.service
#close selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
setenforce 0