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
此时启动防火墙就可以配置端口了!