CentOS 7 关闭防火墙:
CentOS 7 使用firewall来作为默认防火墙
systemctl stop firewalld
或
service firewalld stop
CentOS 7 以下关闭防火墙如CentOS 6:
CentOS 6 使用uptables来作为默认防火墙
临时关闭(当时生效):
service iptables stop
永久关闭,设置为开机不启动(需重起生效):
chkconfig iptables off
关闭selinux
setenforce 0