1.必要软件
yum install -y epel-release
yum update -y
yum install -y vim net-tools nmon htop rsync iptraf-ng tree lrzsz ntp iftop telnet tcpdump traceroute wget
# 按需安装
yum install -y cmake make gcc gcc-c++
2.设置同步时间
echo "0 8 * * * root ntpdate ntp.aliyun.com" >> /etc/crontab
3.关闭selinux及防火墙(防火墙按需关闭)
sed -i 's@SELINUX=enforcing@SELINUX=disabled@' /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld
4.禁用DNS反向解析
sed -i 's@GSSAPIAuthentication yes@GSSAPIAuthentication no@' /etc/ssh/sshd_config
sed -i 's@#UseDNS yes@UseDNS no@' /etc/ssh/sshd_config