Disable Fireware and SELinux

  From http://hi.baidu.com/leonkuo1984/blog/item/4fe1170e1f285cec37d122ca.html  

http://www.kklinux.com/html/Love-Linux/Fedora/200808/08-229.html
http://www.cyberciti.biz/faq/disable-linux-firewall-under-centos-rhel-fedora/
http://www.cyberciti.biz/faq/turn-on-turn-off-firewall-in-linux/
Disable FireWall

[1] It's unnecessarry to enable FireWall because it's enable on the Routers, so Change it to disabled.

[root@ns ~]# /etc/rc.d/init.d/iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
[root@ns ~]# chkconfig iptables off
[root@ns ~]# chkconfig ip6tables off

Disable SELinux

[2] Change to disabled SELinux (Security-Enhanced Linux).
[root@ns ~]# 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                 / change
# SELINUXTYPE= type of policy in use. Possible values are:
#
targeted - Only targeted network daemons are protected.

#
strict - Full SELinux protection.

SELINUXTYPE=targeted

你可能感兴趣的:(Unix)