# systemctl stop firewalld
# systemctl disable firewalld
# systemctl status firewalld
# vim /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 #selinux
状态必须是
disabled
# SELINUXTYPE= can take one of these three values:
# targeted - Targeted processes areprotected,
# minimum - Modification of targeted policy. Only selected processes are
protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
# setenforce 0
1.
2.
3.
4.