CentOS7 's firewall has been replaced by firewall, here are some records, here are some commands:To add an exception port:# Firewall-cmd--add-port=8080/tcpTo remove an exception port:# Firewall-cmd--remove-port=8080/tcpTo view the exception port:#
The Linux system has 7 runlevel (runlevel):
RunLevel 0: System down state, system default RunLevel cannot be set to 0, otherwise it will not start normally
RunLevel 1: Single User working status, root privilege, for system maintenance,
Linux is a multi-user system, no time there are many accounts on the system login, operation, so it is important to manage users.1. User article--/etc/passwd,/etc/shadow1. Add Account--useradd Useradd [-u uid] [-g gid] [-d home] [-m] Span class=
1. Install the virtual machinevmware-workstation-full-12.5.62. Install Linux operating systemUbuntu-16.10-server-amd64Note: Do not configure the keyboardDo not turn off the power of the virtual machine directly, just like a direct power outageEnter "
It is understood that there are two ways to create swap space under Linux, one is to create a swap partition, and the other is to create a swap file. This article records the method of creating a swap file, because I'm using this method:To add a
. zip Format compression
Zip compressed file name source file
Compress files
Zip-r compressed file name source directory
Compressed directory
. zip Format Decompression
Locate file name
Search by file name in the background database, search faster
Background database location for search/var/lib/mlocate
The background database defaults to an update one day, you can force the update by using
Chapter III pipeline character, redirection and environment variables The pipe command , "|", is used to treat the standard output of the previous command as a standard input to the latter command,Format: "Command a| command B" input and output
First, the common version management system1. SVNCentralized version control system, only one central data warehouse, if the central data warehouse is hung or inaccessible, all users cannot use SVN, cannot commit or backup files2. GitDistributed
Function: Change the file's ownership rightschmod [OPTION] ... Mode... FILE ...u userGroup Go OtherA All users (default)+ Add Permissions-Delete Permissions= Reassign PermissionsR ReadW WriteX executions set user (or group) ID numberT set the sticky
Linux Directory detailed description, convenient for you later reasonable planning and management
"/": the root directory of the Linux file system. It is also the highest and most important directory. In addition to other directories, and the
1. User Login SwitchLogin with adminSu or su-Admin Switch General user (Guowei)Su-guowei (user name)2. Directory switching3. View the directory in which you are locatedPWD (Displays the directory in which it resides)Cd.. /(Go to previous layer)
Linux also has three more special permissions, namely:setuid,setgid,stick bit .-: Indicates generic fileD: Represents a catalog fileL: Indicates a linked fileB: Represents a block deviceC: Indicates a character deviceP: Indicates pipelineS:
I. BACKGROUND notesRecently participating in a private cloud project, network mode leverages the CENTOS7 default bridging mode. The operating system is CentOS7.4, the customer installs it himself, and then tells us that the usual toolkit is
The current domestic Linux more is applied to the server, and the desktop operating system more use of Windows. The main differences are as follows
compare
Windows
Linux
interface
interface
The graph does not exist when it appears;Ken may be the case of the view template file because it is;For example, the presentation view file written in the controller is named for the small hump; Goodslist; the name of the view file is, try to keep
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