centOS 6
service iptables status 查看防火墙状态
service iptables stop 关闭防火墙
chkconfig iptables off永久关闭防火墙
centOS 7
systemctl status firewalld.service 查看防火墙状态
systemctl stop firewalld.service 关闭防火墙
systemctl disable firewalld.service 禁止firewall开机启动
centOS 6
service iptables status 查看防火墙状态
service iptables stop 关闭防火墙
chkconfig iptables off永久关闭防火墙
centOS 7
systemctl status firewalld.service 查看防火墙状态
systemctl stop firewalld.service 关闭防火墙
systemctl disable firewalld.service 禁止firewall开机启动
转载于:https://www.cnblogs.com/wayneLOVEdoris/p/9406238.html