Customized installation of SELinux and MySQL databases
With the promotion of Linux as a server operating system by enterprises,more and more databases are being installed on Linux.Moreover,due to factors such as storage space,database installation often adopts customized installation,that is,it is not installed in the default path,but installed in a specified path.The SELinux module is not only the built-in security net of Linux,but also specifies access permissions for installation directories such as web services and database services,that is,it only opens access permissions to the default installation directory and restricts access to other directories for database and other services.Of course,the simplest solution is to shut down the SELinux module,but this can affect system security.Therefore,we need to run both SELinux and open database services to access custom directories.By analyzing SELinux,it is possible to modify the SELinux access permissions for custom directories.