[root@centos7 ~]# cd /etc/selinux/ [root@centos7 selinux]# ls config final semanage.conf targeted tmp [root@centos7 selinux]# vi config [root@centos7 selinux]#
# 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 ~ ~ ~