--Summary of how to disable selinux for CnetOS 7
--Hardware environment
item | information |
---|---|
OS | CentOS 7 (7.8.2003) |
hardware | Dell Studio 1537 |
Processor | Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz |
memory | 4 GB DDR3 |
Graphics | unknown |
--The CentOS 7 PC must be built by the method below or according to the method below. -
--You can disable selinux on CentOS 7 machines.
Execute the following command to make a backup of the selinux configuration file.
$ sudo cp /etc/selinux/config /etc/selinux/config_org
Execute the following command to open the selinux configuration file.
$ sudo vi /etc/selinux/config
Modify the SELINUX part in the opened file as follows. (Note that typo may prevent the CentOS PC from booting)
SELINUX=disabled
Save and close.
Restart your CentOS 7 PC
Execute the following command to output the selinux setting value.
$ getenforce
If the output is as shown below, the setting is complete.
Disabled