How to close the firewallsystemctl stop firewalld
Detect firewall statussystemctl status firewalld
Set the firewall to disable startup at bootsystemctl disable firewalld
Disable SELinuxsetenforce 0
Get SELinux status getenforce
Permanently disabledvi/vim /etc/sysconfig/selinux
vi/vim /etc/fstab
This file stores the partition to be automatically mounted at startup
/dev/cdrom /mnt iso9660 defaults 0 0
Mount source Mount point partition type Automatic mount No self-detection at boot
/etc/yum.repos.d/
##yum source configuration file address Individuals can configure new files in this directory. The files must end with .repo repository warehouseExample rhel7.repo
[rhel7-source] // Namename=rhel-sever //Description informationbaseurl=file:///mnt //(system disk) file path, note that there are no spaces in file://Basic commandsenabled=1 //Enablegpgcheck=0 //Cancel verification
Word sorting
Terminal terminal network-scripts network script passwd password filenologin prohibit login shutdown shutdown reboot restart
poweroff shutdown Grep filter useradd add user graphical graphics
pts virtual terminal ()
Shortcut keys:
Ctrl+Shift+TCreate a new virtual terminal
Ctrl+Shift++Enlarge the font
Ctrl+-Reduce font
Alt+numeric keysSwitch terminal
Alt+F4Close terminal
root
Use who am i Query the pts number corresponding to the current terminal
[root@qshu-pc ~]who am ipts(pseudo-terminal slave) Pseudo terminal: Connect through ssh related terminal. The terminal is: pts
Shell prompt
[root@qshu-pc ~]Bash Shell basic syntax
How to enter commands:
Command [Option] ([Parameter]) [Option value] [Parameter Value]Spaces can be used in combination as splitting parameters
Common options (parameters): -h --help; Features: The options look like: -letters or --plus Word
Basic command operation:
Syntax: ls directory, if no directory is added, view the current directory
Parameters:
ls -lDisplay in detailed information mode
Display all files (including hidden files)
Display only directories
File size user-friendly DisplayCommon information explanation
.. Represents the parent directory (upper-level directory)
Why do some directory files have What about different colors?Different colors in the Linux system represent different file types
BlueDirectory/etc
BlackFile/etc/passwd
Light BlueLink/etc/grub2.cfg
RedCompressed package boot.tar.gz
GreenExecutable file/etc/init.d/network
Black background with yellow charactersDevice file/dev/sda
The above is the detailed content of How to turn off the CentOS-Linux firewall. For more information, please follow other related articles on the PHP Chinese website!