Failed to stop iptables.service: Unit iptables.service not loaded.

redhat 7

[root@lk0 ~]# service iptables stop
Redirecting to /bin/systemctl stop iptables.service
Failed to stop iptables.service: Unit iptables.service not loaded.
[root@lk0 ~]#
[root@lk0 ~]# service iptables status
Redirecting to /bin/systemctl status iptables.service
● iptables.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

客户端telnet ip 8088 , 不通, 郁闷!

原来 redhat 7 的防火墙不能那么关。。。

http://jingyan.baidu.com/article/e52e3615a9009440c70c5162.html

使用systemctl 就ok了!

systemctl stop firewalld

systemctl status firewalld

systemctl disable firewalld

systemctl enable firewalld

上一篇:[Jobdu] 题目1506:求1+2+3+...+n


下一篇:Relocation - POJ 2923(状态压缩+01背包)