There are three ways to set SELinux under Linux.
First, in the graphical interface:
Desktop--Manage security levels and firewalls, set to disable.
Second, in the command mode:
Modify the file:/etc/selinux/config, and then restart the system. Specific changes
Third, run the command: Setup, go to "firewall Configuration", in the SELinux bar, select "Disable".
Four, run the command: Setenforce 0, (do not need to restart).
Turn off SELinux protection for specified services (FTP as an example):
1, use the command: Getsebool Ftpd_disable_trans can view the current status if not on
2. Input command: Setsebool Ftpd_disable_trans 1
Of course, you can add the-p parameter so that you don't need to enter this command every time you start
Setsebool-p Ftpd_disable_trans 1
Firewall aspects:
First, run the command: Setup, go to "firewall Configuration", and in the security level bar, select "Disable".
Second, run the command: Chkconfig--level iptables off.
To open the specified port:
1, run:/sbin/iptables-i input-p tCP --dport 80-j ACCEPT Open 80 port.
2. Run:/etc/init.d/iptables Save settings
===========================================
Note:
The above process is the key to solve the following vsftp problems,
Oops:cannot Change Directory
Oops:child died
Shut down the firewall and selinux to use Vsftp