博客园 首页 私信博主 显示目录 隐藏目录 管理

linux关闭防火墙

linux启动服务,外网访问不到对应端口时,十有八九是因为防火墙没有关,关闭方法:

1.暂时关闭防火墙

service iptables stop

2.永久关闭

chkconfig iptables  off

查看自启动状态列表

on chkconfig  iptables --list

posted @ 2020-03-04 09:32  MrSharp  阅读(231)  评论(0)    收藏  举报