CentOS Firewall・SELinuxの停止

ルータのファイヤーウォールがあるなら,CentOSファイヤーウォールは切っておいた方が変な障害がでなくてよかろという判断による.

# /etc/rc.d/init.d/iptables stop %ファイヤーウォールの停止
# chkconfig iptables off %自動起動の停止


SELinuxも停止.

# vi /etc/sysconfig/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 - 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

再起動すればSELinuxは停止する.