centos 7 firewall無法啟動


報錯信息:

[root@localhost bin]# 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 Fri 2019-01-25 02:07:03 EST; 4min 25s ago
Docs: man:firewalld(1)
Process: 2037 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=127)
Main PID: 2037 (code=exited, status=127)

Jan 25 02:07:03 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
Jan 25 02:07:03 localhost.localdomain systemd[1]: firewalld.service: main process exited, code=exited, status=127/n/a
Jan 25 02:07:03 localhost.localdomain systemd[1]: Failed to start firewalld - dynamic firewall daemon.
Jan 25 02:07:03 localhost.localdomain systemd[1]: Unit firewalld.service entered failed state.
Jan 25 02:07:03 localhost.localdomain systemd[1]: firewalld.service failed.

gogle了一大堆,一個老兄說python版本不對。我的python確實從2升到3了

解決辦法

1 查看firewalld在那個路徑下

which firewalld

2 編輯firewalld文件

3 將這個聲明,改為你老版本python。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM