CentOS work content (ii) Close SELinux

Source: Internet
Author: User

CentOS work content (ii) Close SELinux

After the CentOS installation is complete, there are many configurations to change, but the most important thing is to turn off SELinux

SELinux is a feature of enhanced security, not selinux bad, but a lot of inconvenience when functional security is high

For beginners and managers to use conveniently, we recommend that you turn off SELinux to avoid unnecessary errors when installing or configuring services

Shortcut keys to use

tab Auto-completion (do you have any idea)

Ctrl + a moves to the beginning of the current line (a ahead)

ctrl+u Delete (cut) here to start all content

Vim

In the last row mode

: Ser nu and enter line number directly

In edit mode

The insert command for the text is I and I. Where i is the character after which the output is inserted before the current cursor position. The command I inserts the following character into the beginning of the line where the current cursor is located

The commands for attaching text are a and a, where command A is inserted after the character entered at the current cursor position, and command a appends the character that is entered later to the end of the line where the current cursor is located

Close method

Edit the SELinux configuration file, set the configuration to Disabled, reboot the server after completion, the configuration will take effect

Modifying the SELinux configuration file

Vim/etc/sysconfig/selinux

First step: In the last row mode

: Ser nu

Step Two: Re-enter the last line mode

Enter line number 7

Step three: Enter command A For additional text, move to end of line

Fourth Step: Enter disable

Fifth step: Save in the last row mode

: Wq

Sixth step: Restart the server

Shutdown-r now

F

CentOS work content (ii) Close SELinux

Related Article

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.