输入:cat /etc/issue 查看版本centos版本
1.service命令
2.通过:/etc/init.d/iptables 进行操作
关闭防火墙:/etc/init.d/iptables stop(这是临时关闭,关闭的是当前运行的防火墙,重启之后防火墙又会启动,因为它是开机自启动的,它相当于/etc/init.d/iptables start)
查看防火墙状态:/etc/init.d/iptables/status
3.需要改为开机不启动,使用chkconfig命令
永久关闭防火墙: chkconfig iptables off
永久开启防火墙: chkconfig iptables on
查看状态:chkconfig –list iptables
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/204619.html原文链接:https://javaforall.net
