安装net-tools:
yum install -y net-tools
安装epel源
yum install epel-release
安装fail2ban
yum install fail2ban
安装开发工具包
yum groupinstall "Development Tools"
禁用SElinux:
vi /etc/selinux/config,修改SELINUX=disabled,确认一下:getenforce
安装iptables和iptables-service,关掉和禁用firewalld:
yum install -y iptables iptables-services
systemctl stop firewalld
systemctl mask firewalld