Linux防火墙关闭与开启多种方式
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux防火墙关闭与开启多种方式相关的知识,希望对你有一定的参考价值。
1. 防火墙即时生效,重启系统后失效
开启: [[email protected] ~]# service iptables start 关闭: [[email protected] ~]# service iptables stop
2. 防火墙重启系统后永久生效
开启: [[email protected] ~]# chkconfig iptables on 关闭: [[email protected] ~]# chkconfig iptables off
3. 修改系统启动配置文件的方式
开启: [[email protected] ~]# chkconfig --level 35 iptables on 关闭: [[email protected] ~]# chkconfig --level 35 iptables off
以上是关于Linux防火墙关闭与开启多种方式的主要内容,如果未能解决你的问题,请参考以下文章