Loading

关闭SeLinux和防火墙

SeLinux

临时关闭:

[root@localhost ~]# getenforce
Enforcing

[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive

永久关闭:

[root@localhost ~]# vim /etc/sysconfig/selinux

SELINUX=enforcing 改为 SELINUX=disabled

防火墙

临时关闭

systemctl stop firewalld.service

禁止开机自启

systemctl disable firewalld.service
posted @ 2020-08-16 02:20  北兢王  阅读(102)  评论(0)    收藏  举报