centos7无法打开防火墙

执行systemctl status firewalld后报错如下:

● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-10-12 22:32:38 PDT; 7s ago
Docs: man:firewalld(1)
Process: 5346 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=1/FAILURE)
Main PID: 5346 (code=exited, status=1/FAILURE)

Oct 12 22:32:38 localhost.localdomain systemd[1]: Starting firewalld - dynami...
Oct 12 22:32:38 localhost.localdomain systemd[1]: firewalld.service: main pro...
Oct 12 22:32:38 localhost.localdomain systemd[1]: Failed to start firewalld -...
Oct 12 22:32:38 localhost.localdomain systemd[1]: Unit firewalld.service ente...
Oct 12 22:32:38 localhost.localdomain systemd[1]: firewalld.service failed.

 

有升级Python版本,试了一堆办法都没用,最后

 

解决办法:

yum install firewalld 完成后重启防火墙,搞定.......

posted on 2020-10-13 14:02  向北飞的狗儿  阅读(818)  评论(0编辑  收藏  举报