环境准备
#临时关闭防火墙 [root@mayongle1 ~]# systemctl stop firewalld.service #关闭开机自启 [root@mayongle1 ~]# systemctl disable firewalld.service Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. #临时关闭selinux [root@mayongle1 ~]# setenforce 0 #永久关闭selinux #把/etc/selinux/config文件SELINUX值改成disabled [root@mayongle1 ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: |
||
# # # |
enforcing - SELinux security policy is enforced. permissive - SELinux prints warnings instead of enforcing. disabled - No SELinux policy is loaded. |
|
SELINUX=disabled # SELINUXTYPE= can take one of three values: |
||
# # |
targeted - Targeted processes are protected, minimum - Modification of targeted policy. Only selected processes are |
|
protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted |