In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "CentOS8 disable SELinux tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and study the "CentOS8 disable SELinux tutorial" bar!
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.
Thank you for your reading, the above is the content of the "CentOS8 disable SELinux tutorial", after the study of this article, I believe you have a deeper understanding of the CentOS8 disable SELinux tutorial, the specific use of the need for you to practice and verify. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.