zl程序教程

您现在的位置是:首页 >  工具

当前栏目

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

Failed to not Service iptables unit loaded Stop
2023-09-14 08:57:00 时间

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