systemctl stop firewalld #临时关闭
systemctl disable firewalld #永久关闭,即设置开机的时候不自动启动
[root@localhost html]# getenforce Permissive [root@localhost html]# setenforce 0 [root@localhost html]# vim /etc/sysconfig/selinux 永久关闭selinux可以使用vi命令打开/etc/sysconfig/selinux 文件将SELINUX=(disable或permissive)
原文:https://www.cnblogs.com/xiaoai666/p/14410784.html