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
此時啓動防火牆就可以配置端口了!