Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to close selinux in Linux

Shulou Source: shulou.com Published: 2022-06-02 04:11:05 10月04日 Update

How do I turn off selinux in Linux? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

The method of shutting down selinux in Linux: 1. Temporarily close and enter the "setenforce 0" command in the terminal. 2, permanently close, enter the command "vi / etc/selinux/config", then change the value of SELINUX to "disabled", and finally save and exit.

The method of closing SELinux in Linux

1. Temporary shutdown: enter the command setenforce 0, and it will be turned on after rebooting the system.

2. Permanently close: enter the command vi / etc/selinux/config, change SELINUX=enforcing to SELINUX=disabled, and then save exit.

Thank you for reading! After reading the above, do you have a general idea of how to turn off selinux in Linux? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

Tags: Content commands input articles methods questions Zhongguan permanent more look systems terminals industries information information channels channels references learning work help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Shulou Information Xiaomi Redmi Docker