您好,欢迎光临中国U网,租用美国服务器香港服务器瑞典服务器等全球各地的服务器。
您现在的位置:首页 > 帮助中心 > 服务器问题 > CentOS Linux开启和关闭防火墙命令

CentOS Linux开启和关闭防火墙命令

来源:中国U网 日期:2012-08-22 类别:服务器问题 点击:3843
如何通过命令开启和关闭防火墙呢?

CentOS Linux开启和关闭防火墙命令有两种,一种是临时的,重启即复原;另外一种是永久性的,重启不会复原。

1) 临时生效,重启后复原

开启: service iptables start

关闭: service iptables stop

2) 永久性生效,重启后不会复原

开启: chkconfig iptables on

关闭: chkconfig iptables off

 

对于Linux下的其它服务都可以用以上命令执行开启和关闭操作。


关键词:
CentOS Linux开启和关闭防火墙命令为中国U网原创文章,在不经过允许的情况下,禁止用于商业用途或随意转载,转载请注明出处,并加上本页链接地址:
http://www.cuwww.com/help/detail-49.html