一、安装完Python3.6.5后无法使用firewalld解决
解决:需要把/usr/sbin/firewalld、/usr/bin/firewall-cmd 的头部内容改为原来的 pyton2.7
sudo sed
-i
"1c #!/usr/bin/python2.7"
/usr/sbin/firewalld
sudo sed
-i
"1c #!/usr/bin/python2.7" /usr/bin/firewall-cmd
systemctl restart firewalld
参照文档
https://blog.csdn.net/lanju2012/article/details/79757292
https://blog.csdn.net/weixin_39860437/article/details/79320343