|   
 
 | 
Centos 6.4 iptables防火墙关闭启动 
| 关闭命令:  service iptables stop 永久关闭防火墙:chkconfig iptables off
 两个命令同时运行,运行完成后查看防火墙关闭状态
 service iptables status
 1 关闭防火墙-----service iptables stop
 2 启动防火墙-----service iptables start
 3 重启防火墙-----service iptables restart
 4 查看防火墙状态--service iptables status
 5 永久关闭防火墙--chkconfig iptables off
 6 永久关闭后启用--chkconfig iptables on
 
 查询TCP连接情况:
 netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
 查询端口占用情况:
 netstat   -anp   |   grep  portno(例如:netstat   -anp   |   grep  8080)
 
 查询已连接某端口的情况:
 netstat -anp |grep 8080 |grep ESTABLISHED
 | 
 |