做为初学者使用Linux时都会关闭自带的防火墙。
下面是操作过程以Centos6.5为例:
[[email protected] ~]# /etc/init.d/iptables stop //关闭 iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Unloading modules: [ OK ] [[email protected] ~]# /etc/init.d/iptables stop //重复执行确认关闭 [[email protected] ~]# chkconfig iptables off //关闭开机自启动,3表示文本模式 [[email protected] ~]# chkconfig --list|grep ipta iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
参考:
老男孩Linux
时间: 2024-10-31 14:45:40