Linux 輕鬆上手 架設 CentOS 6.4 DNS+FTP –(二)、關閉SELINUX及防火牆

Linux 輕鬆上手 架設 CentOS 6.4 DNS+FTP –(二)、關閉SELINUX及防火牆

1.關閉CentOS防火牆

2.關閉SELINUX
# vi /etc/selinux/config
修改 SELINUX=enforcing
# 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 - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
to SELINUX=disabled
# 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 - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
修改完成重新開機.
強制執行無需重新開機輸入指令:
# setenforce 0