码迷,mamicode.com
首页 > 其他好文 > 详细

centos防火墙和端口操作

时间:2015-05-28 12:22:10      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:

查看所有端口:

netstat -ntlp

查询防火墙状态:

service iptables status

停止防火墙:

service iptables stop

启动防火墙:

service iptables start

重启防火墙:

service iptables restart

永久关闭防火墙:

chkconfig iptables off

永久关闭后启用:

chkconfig iptables on

 

centos防火墙和端口操作

标签:

原文地址:http://www.cnblogs.com/zhhda/p/4535510.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!