防火墙的开启和关闭

1.查看服务器防火墙是否开启

  chkconfig --list |grep iptables

  chkconfig 可用来查看系统服务的运行状态

2.关闭防火墙

chkconfig iptables off

3.开启防火墙

chkconfig iptables on

猜你喜欢

转载自zhaocuifang-bf.iteye.com/blog/2073565