关闭主机selinux脚本 #!/bin/bash sed -i “s/^SELINUX=.*$/SELINUX=disabled/” /etc/selinux/config #修改selinux配置文件,关闭selinux systemctl disable firewalld #设置开机禁用防火墙 systemctl disable NetworkManager #永久关闭网络管理命令