Turn off SELinux ...

Source: Internet
Author: User

To reduce commissioning time, quickly deploy server environments, and sometimes we need to temporarily turn off SELinux

1. Query the SELinux status:getenforce

Status value, enforcing,permissive,disabled

Enforcing: Forced mode, in operation

Permissive: Tolerant mode, only the prompt message, usually used to debug

Disable: Off mode, SELinux not running

2. Switch SELinux mode:setenforce

can switch between enforcing and permissive

Setenforce 1, switch to enforcing

Setenforce 0, switch to permissive

Configuration file for 3.SELinux:/etc/selinux/config

In addition to using the Setenforce switch mode, you can also configure the SELinux run mode in this configuration file.

Specify different values for the configuration options SELinux, and the optional values are enforcing,permissive,disabled.

Restart the machine when the configuration is complete

Turn off SELinux ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.