centos7系列
关闭没用的服务
关闭selinux,配置或关闭防火墙
配置yum源,epel源
下载常用软件
修改内核参数
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum install -y wget vim
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum install -y bash-completion lrzsz nc axel nmap tree
systemctl disable firewalld.service
systemctl stop firewalld.service
setenforce 0
sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
chmod +x /etc/rc.d/rc.local