Think before you speak, read before you think.

关闭centos防火墙

by

in

查看iptables的状态

/etc/init.d/iptables status

会得到一系列信息,说明防火墙开着。

关闭防火墙命令

/etc/init.d/iptables stop

这时查看iptables状态

# /etc/init.d/iptables status
iptables: Firewall is not running.

查看开机启动的情况

chkconfig --list | grep iptables

下次开机不再启动:

chkconfig --level 35 iptables off

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *