安裝完python3版本後,防火牆無法啓動firewalld.service failed because the control process

原文鏈接:https://blog.csdn.net/qq_23889009/article/details/90763484

Job for firewalld.service failed because the control process exited with error code. See “systemctl status firewalld.service” and “journalctl -xe” for details.(更換python2 更換成 python3 後)
以及分配端口出現問題,都是因爲python2和python3升級問題。

在這裏插入圖片描述

只需要修改文件三個
/usr/bin/firewall-cmd
/usr/bin/firewall-offline-cmd
/usr/sbin/firewalld
這三個文件的首行的默認 /usr/bin/python 都改成 /usr/bin/python2.7或者/usr/bin/python2

此時啓動防火牆就可以配置端口了!

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章