tags: Centos
Today, when the firewall was turned off, Unit iptables.service could not be found. After inspection, it was found that it was caused by the centos version, so I made this document to record
Let’s talk about Centos7 first
Centos7 and later versions
First check the status of the firewall
firewall-cmd state
There is also a way of checking, judging the active result in the result
systemctl status firewalld.service
Then the method of turning off the firewall is also very simple, similar to the previous one
systemctl stop firewalld.service
Permanently closed is
systemctl disable firewalld.service
Previous versions of centos7
Later, I will talk about the traditional closing method before 7. Of course, 7 does not have this method. If necessary, you can choose yum to install. Personally, it is unnecessary. Since people have made changes, it must have his advantage
View firewall status
service iptables status
Turn off firewall
service iptables stop
Permanently turn off the firewall
chkconfig iptables off
There is no explanation when it is turned on. I believe that you can find a way by looking for a pattern.
If I hope to help you, please give me a thumbs up 🤨🤭🤭
Project scene: CentOS7 closes the firewall appearance: Failed to stop iptables.service: Unit iptables.service not loaded. Problem Description: CentOS7 executes: Service iptables stops appears when the...
Original address: Execute in CentOS7 Error: Redirecting to /bin/systemctl restart iptables.service Failed to restart iptables.service: Unit not found. The reason is because CentOS7 uses firewal...
Temporarily closed Prohibit boot Output: Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.servic...
CentOS 7.0 uses FireWall as a firewall by default, using iptables must be reset 1, close the firewall directly 2, set iptables service If you want to modify the firewall configuration, if you increase...
View the firewall status error instruction Report an error Install iptables-services Start iPtables-Services Set the boot self -starting start up View firewall status Firewall open status Firewall clo...
Centos 6 and Centos 7 turn off the firewall remember! Almost half of the big data cluster problems I have now are caused by not turning off the firewall. Centos 6 turns off the firewall Centos 7 turns...
1, generate logstash.service ...