In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article editor for everyone to introduce in detail "CentOS8 how to disable SELinux", the content is detailed, the steps are clear, the details are handled properly, I hope this "CentOS8 how to disable SELinux" article can help you solve your doubts, following the editor's ideas slowly in-depth, let's learn new knowledge together.
The full name of SELINUX is Security Enhanced Linux (Security hardening Linux), which is a finer-grained setting for the security level of the system. Because the SELinux configuration setting is too strict, it may conflict with the functions required by CM, so we choose to turn it off directly here.
How to temporarily disable SELinux on CentOS 8
Before you start disabling SELinux on CentOS 8, be sure to check the status of SELinux.
To do this, run the following command:
[root@localhost www.linuxidc.com] # sestatusSELinux status: enabledSELinuxfs mount: / sys/fs/selinuxSELinux root directory: / etc/selinuxLoaded policy name: targetedCurrent mode: enforcingMode from config file: enforcingPolicy MLS status: enabledPolicy deny_unknown status: allowedMemory protection checking: actual (secure) Max kernel policy version: 31
This indicates that SELinux is up and running.
To temporarily disable SELinux, run the command.
# setenforce 0
In addition, you can run the command.
# setenforce Permissive
Any of these commands will temporarily disable SELinux until the next restart.
How to permanently disable SELinux on CentOS 8
Now, let's see how to permanently disable SELinux. The configuration file for SElinux is located in / etc/selinux/config. Therefore, we need to make some changes to the file.
# vi / etc/selinux/config
Set the SELinux property to Disabled, as follows:
# 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-No SELinux policy is loaded.SELINUX=disabled# SELINUXTYPE= can take one of these three values:# targeted-Targeted processes are protected,# minimum-Modification of targeted policy. Only selected processes are protected.# mls-Multi Level Security protection.SELINUXTYPE=targeted
Save and exit the configuration file, and then restart the CentOS 8 Linux system using any of the following commands.
# reboot# init 0# telinit 0
Now, use the command to check the status of SELinux.
[linuxidc@localhost www.linuxidc.com] $sestatusSELinux status: disabled
SELinux is a critical feature on CentOS 8 that helps restrict unauthorized users from accessing certain services on the system.
Read here, this "CentOS8 how to disable SELinux" article has been introduced, want to master the knowledge of this article also need to practice and use to understand, if you want to know more about the article, welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.