To disable SELinux, modify selinux = & quot; in the/etc/SELINUX/config file as disabled, and restart. If you do not want to restart the system, run the setenforce0 command. note: setenforce1 sets SELinux to enforcing mode. setenforce0 sets SELinux to permis.
To disable SELinux:
Modify selinux = "" in the/etc/SELINUX/config file to disabled, and then restart.
If you do not want to restart the system, run the setenforce 0 command.
Note:
Setenforce 1 sets SELinux to enforcing mode
Setenforce 0 sets SELinux to permissive mode
Add selinux = 0 to the startup parameters of lilo or grub. you can also disable selinux.
#---------------------------------------------------------------
View selinux status:
/Usr/bin/setstatus-v
As follows:
SELinux status: enabled
SELinuxfs mount:/selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 21
Policy from config file: targeted
Getenforce/setenforce view and set the current working mode of SELinux
#-----------------------------------------------------------------------
Once the service is started, it immediately stops. search for information on the Internet and disable SELinux before installing MySQL. The steps are as follows:
1. disable SELinux and restart the system;
2. install MySQL (MySQL server should be able to start );
3. enable SELinux and restart the system. then the MySQL server can start normally.
Enable SELinux:
Vi/etc/selinux/config (also known as the/etc/sysconfig/selinux file)
SELINUX = disable SeLinux
SELINUX = enforcing enable SeLinux