RHEL7 Management of software packagesThere are two main types of package management, RPM and YumTwo kinds of package management are useful, the main difference is: Yum is simple to use but requires networking, Yum will go to the online Yum package
IO Redirection and pipingAlways mentioned, program: Instruction + dataIn fact, the program also has IO, the source of data has many places: file, externalDevices available for input: Files (all Linux files)Keyboard device, file system on the regular
First, the concept1. Poll Scenario DescriptionTake the key driver as an example to open the key driver file/dev/buttons in a blocking way, the application uses the Read () function to read the key value of the key. The effect of this is: if a
After configuring Linuxserver FTP today, the login is OK. When you log in using the FTP tool, all folders can be visited by hand-written paths, but the folders and file lists do not see the data.Later analysis, summed up the cause of the results are
Process suspend and resume#ctrl +z: Hang, the program is put in the background, the program does not end.#jobs: View suspended program work numbersWhen the recovery process executes, there are two options: the FG command puts the suspended job back
System MonitoringTop Command : Displays the processes running on the system, which is one of the most important tools for system administrators, and is widely used to monitor the load on the serverThe top command displays a lot of information about
Vim EditorVI Editor's enhanced version, syntax highlighting and other extended functionsVIM three operating modes a,i,o equal key output modeCommand mode, input mode, last line modeSwitching between modesA: Current row insertionI: Current line
Cat: View All (cons: Inconvenient to view when there is more content)Format: Cat [options] File nameCommon Command Options-N: Add a line number before each line[Email protected] Desktop]# cat-n/etc/passwd1 Root:x:0:0:root:/root:/bin/bash2
File Rights Management[email protected] ~]# Touch a.txt[email protected] ~]# ll initial-setup-ks.cfg-RW-------. 1 644 root 1680 May 18:42 initial-setup-ks.cfg-Rwx r-x r-x root root FILENAMEPermission of the type owner belongs to the group the other
Planning tasks for Linux systemsLinux system Operations Engineers most of the management work is done by automatically executing a script on a regular basis.Cron function is very important, remember!!!Planning function Crontab:
-U: (user)
Common directivesLS Display file or directory-l list File details L (list)-a lists all files and directories under the current directory, including Hidden A (all)mkdir Creating a Directory-P Create directory, if no parent directory, create p (parent)
First, system monitoring1.top: Real-time display of resource usage for each process in the system, similar to the Task Manager for Windows.1. The first line is the task queue information
12:38:33
Current time
Up 50
As long as Linux, through the Software warehouse (yum, apt-get, etc.) install Dmidecode, regardless of virtual machine, physical machine, execute the following command to obtain accurate memory raw capacity information.Memory greater than 1G
Summary:-CENTOS7 boot the first program from Init completely replaced with SYSTEMD this boot mode, with CentOS 5 6 is already a substantial difference. SYSTEMD is managed by the unit to control the power-on service, boot level and other functions.
1) New user Natasha,uid is 1000,gid 555, note information is "master"?1. Through the VIM/ETC/PASSWD command, directly under another user information, modified into Natasha user information,Because there is no Natasha directory under the home
FreeThe free command provides a more concise view of system memory usage relative to top:
# free total used free shared buffers cachedmem: 255988 231704 24284 0 6432 139292-/+
A detailed example of compression decompression commands under LinuxExample: compressing the contents of the current directory on the server as a xxx.zip fileZip-r xxx.zip./*Unzip the zip file to the current directoryUnzip Filename.zip===============
Ubuntu compilation, installation, and LNMP environment, ubuntulnmp
Nginx1.2.0 + mysql5.6.33 + php5.6.2 are used together with the installation environment.
--------------------------------------------- Nginx BEGIN ------------------------------------
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