安装完python3版本后,防火墙无法启动firewalld.servicefailedbecausethecontrolprocess
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 后)
只需要修改文件三个
/usr/bin/firewall-cmd
/usr/bin/firewall-offline-cmd
/usr/sbin/firewalld
这三个文件的首行的默认 /usr/bin/python 都改成 /usr/bin/python2.7或者/usr/bin/python2
systemctl start firewalld
systemctl status firewalld
image.png
我的系统版本是 center OS7
这样就ok了
网友评论