1. nginx1: Stop and calmly close nginxsudo kill-QUIT Nginx master process id: Quickly stop sudo kill-TERM nginx master process id force stop sudo pkill-9 nginx 2, start sudo/usr/sbin/nginx-c/etc/nginx. conf 3. Check and restart sudo/usr/sbin/nginx-t-
Shutdown-h now shutdown command reboot restart command pws display current directory cat/etc/shells view all shell tab auto-completion key ctrl + l clear screen ctrl + u Delete All characters before the cursor history view command history alias view
Use $0 to split the current string. For example, cat num.2012032911 | awk '{print $2}' | awk '{split ($0, B ,". "); print B [2]} '| cut-c 3-get the second column, for example, the second column is com. sb3456.you, then obtain sb3456 from the current
The standard linux operating level is 3 or 5. If it is 3, the system is in the multi-user State. If it is 5, the X Window System is running. If it is currently 3 or 5, and you reduce the running level to 2, init will execute the K45named script.
Static Method Note: All operations use root user modify ip: edit file/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE = eth0 // device name, do not modify www.2cto.com BOOTPROTO = static // do not modify BROADCAST = 10.10.22.255 // BROADCAST address,
# Include void exit (int status); unlike fork, it is difficult to understand. The exit name shows that this system call is used to terminate a process. No matter where the program is located, as long as the exit system call is executed, the process
The results listed in ll are detailed, including time, whether the data can be read or written, like in windows, the detailed information ls only lists the file name or directory name, just like in windows, the list ll-t is in descending order, ll-t
Check whether the linux system file has been changed by using md5sum. # LsFirst.txt group passwd second.txt third.txt# Pwd/Mnt/tt # Md5sum/mnt/tt/*>/opt/md5_res.txt \ perform md5 verification on the files in the tt directory, and store the data to a
The who command of one linux Command per day displays the user information currently logged on to the system. Who -- help can be used to view command parameters. Who Command Format: who [OPTION]... [FILE | ARG1 ARG2] If FILE is not specified, the
Centos6.4 configuration local source yum when we install centos6.4 and cannot connect to the Internet, then our yum command is useless. This is how we can configure local source to use yum command 1. configure the repo file, cd/etc/yum. repos. d
There are rumors about vim's God-level Configuration: vim is the god of the editor, and (xxx) is the editor of the gods. That is to say, vim is the best editor, and most people at the level of great gods use the Editor (xxx. If you are not a human,
Linux (redhat) file structure overview linux File structure main file/bin binary executable command/dev device special file/etc system management and configuration file/etc/rc. d. Start the configuration file and script/home user home directory base
When you see Tiny Core Linux, you may feel deeply, what is it called Sparrow. When the editor downloads the text from tinycorelinux.com to tinycore_3.0.iso, it is only 10.6 MB. How can I use such a small Linux system compared to the installation
LINUX zombie process processing 1 What is a zombie process: when a child process ends before the parent process, but the parent process does not recycle the child process, release the resources occupied by the child process, in this case, the child
Linux File SystemLinux file system involves several basic conceptsSuperblock: records the overall information of this filesystem, including the total inode/block, usage, remaining amount, and file system format and related information.Inode: records
Linux shell learning: Automatically detects and restarts the httpd service [root @ localhost shell] # cat checkapache. sh #! /Bin/bash # using your program to show your system's serviceecho "Now, the web service of linux system will be detected...
Linux Command for viewing file content cat displays file content starting from the first line tac displays nl display from the last line at the same time output line number more one page display content less similar to more, however, its advantages
In shell scripts $, $ #, $? $0 the execution name of this program $ n the nth parameter value of this program, n = 1 .. 9 $ * all parameters of this program, this option parameter can exceed 9. $ # Number of parameters of the program $ PID of the
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