关闭防火墙

[root@lhc ~]# /etc/init.d/iptables stop        (临时关闭)
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]

iptables: Unloading modules:                               [  OK  ]

[root@lhc ~]# /etc/init.d/iptables status
iptables: Firewall is not running.
[root@lhc ~]# 
[root@lhc ~]# chkconfig iptables off         (永久关闭,重启后不开启)
[root@lhc ~]# 

猜你喜欢

转载自blog.csdn.net/forever_xiaobai/article/details/80345470