Centos7 error encountered when closing the firewall Failed to start firewalld.service: Unit not found. Unit firewalld.service could no

Centos7 turn off the firewall

Today I want to turn off the firewall on centos, check some blogs, execute commands

systemctl status firewalld.service

Unit firewalld.service could not be found.
Then I checked a lot of information and said that it would be solved by executing the following

systemctl unmask firewalld.service

But it was wrong again
Failed to start firewalld.service: Unit not found.
It ’s a headache, Baidu ’s stereotyped answer ca n’t be solved,
Finally found the problem

In fact, it is to exclude whether you have installed this firewalld

yum install firewalld
systemctl unmask firewalld
systemctl enable firewalld
systemctl start firewalld

After executing the above commands in turn, I finally found it ok

Other commands

systemctl start firewalld.service   //Turn on the firewall
systemctl stop firewalld.service   //Turn off the firewall
systemctl enable firewalld.service  //Set automatic startup
systemctl disable firewalld.service   //Set to turn off and start the brake to start
firewall-cmd --reload  //Reload the firewall without changing the state

Finally solved, the world is quiet!

Intelligent Recommendation

Development of ports when using Digitalocean server deployment project when it came to Unit firewalld.service could not be found. Error

Problem Description: Because Digitalocean with a 5 $ whore for a year of servers, not white do not think so want to own a new project to deploy to the server, but need to develop port 8080, the Intern...

Alibaba Cloud Server Tips FireWalld Is Not Running and Failed To Start FireWallD.service: Unit FireWallD.Service IS Maske

A question found when playing Linux today: The firewall can't open. I just started to check the FireWall settings: I found that the firewall didn't open, and set it up to open it.The result is still n...

Failed to Start FireWall.Service: Unit Not Found when CentOS7 starts the firewall.

Article catalog Problem Description Reason for problems Other orders Problem Description I want to open the port under CentOS to start the firewall when starting the firewall. The problems encountered...

Solve the "Failed to start firewalld.service" problem in CentOS7

If we are fromCentOS6The transition toCentOS7If the system comes, you will find the originaliptablesBefirewalldReplaced, and the corresponding command format is slightly changed. Today, the old left h...

More Recommendation

Failed to start firewalld.service appear after performing systemctl start firewalld command: Unit is masked

firewalld service is locked, you can not add the corresponding port. Lock execute the command, you can achieve canceled services The next time the need to lock the service...

Centosos open port, FireWalld Is Not Running, Failed to Start FireWallD.Service: Unit is masked solution

Centosos Open Port Details Steps First, Centosos open port Second, there is "firewalld is not running" Third, "Failed to Start FireWallD.Service: Unit Is Masked" Alibaba Cloud serv...

After installing the python3 version, the firewall cannot start Job for firewalld.service failed because the control process exited with error

Find See this addressTo check Add the previously used python version after the first line carry on Find Start the firewall service firewalld start Look at the highlighted part first and find that ther...

[Centos-Firewall] CentOS7 starts the firewall and reports an error Failed to start iptables.service: Unit not found.

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...

CentOS7 install mysql start error (Failed to start mysqld.service:. Unit not found)

First, the problem: 1, there is no problem when CentOS7 install mysql, install the following commands: yum -y install  mysql mysql-server mysql-devel 2, when you start my...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top