Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to view and close SELinux in Linux system

2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to view and close SELinux in Linux system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "How to view and close SELinux in Linux system"!

1. Check SELinux status command:

1./usr/sbin/sestatus -v ##If SELinux status parameter is enabled, it is enabled

SELinux status: enabled

2. getenforce ##can also be checked with this command

Second, close SELinux method:

1. Temporary shutdown (without restarting the machine):

The code is as follows:

setenforce 0 #Set SELinux to permissive mode

#setenforce 1 Set SELinux to enforcement mode

2. Modifying the configuration file requires restarting the machine:

Modify the/etc/selinux/config file

For SELINUX=enforcing read SELINUX=disabled

Restart the machine

At this point, I believe that everyone has a deeper understanding of "how to view and close SELinux in Linux system," so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report