Solution: iptables service information read error: No such file or directory

Solution: iptables service information read error: No such file or directory

Here Insert Picture Description
When viewing the firewall status: 1 case

service iptables status

Here Insert Picture Description
Solution:
1. First Stop firewall

systemctl stop firewalld
systemctl mask firewalld

2. iptables-service and then install
the centos:

yum install iptables-services

3. Set the boot Firewall

systemctl enable iptables

At this point iptables-services installed
, run the following command to view the status of

service iptables status

I like to please pay attention to my micro-channel public number:
I love it Computer
Here Insert Picture Description

Published 68 original articles · won praise 15 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_42913025/article/details/95230869