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