您的位置:首页 > 运维架构 > Linux

Linux本地可以访问,其他的无法访问,关闭防火墙

2014-05-05 10:25 429 查看
查看防火墙配置(需要root权限)
[plain]

view plaincopyprint?
1.     
[root@localhost ~]# service iptables status  
2.     
Redirecting to /bin/systemctl status  iptables.service  
3.     
iptables.service - IPv4 firewall with iptables  
4.     
   Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)  
5.     
   Active: inactive (dead)  
[root@localhost ~]# service iptables status
Redirecting to /bin/systemctl status 
iptables.service
iptables.service - IPv4 firewall with iptables
   Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
   Active: inactive (dead)
关闭防火墙(需要root权限)
[plain]

view plaincopyprint?
1.     
[root@localhost ~]# service iptables stop  
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐