1. Back up the/etc directory to the current directory, the file name of the backup files is named after the source directory name and the time date on the server[Email protected] ~]# tar CFZ etc-date +%x\(%H-%M-%S\). tar.gz/etc[Email protected] ~]#
10.1 W View System load监控系统的状态 w / uptime 查看系统负载 cat /proc/cpuinfo 查看CPU核心数 vmstat 监控系统状态 用法 vmstat 1 关键的几列:r , b , swpd , si , so , bi , bo , us , wa top 查看进程使用资源情况 top -c 显示详细的进程信息 q 退出,数字1显示所有核CPU,大写字母 M 按内存使用排序 大写字母 P
12.21 PHP-FPM's Pool
Requirements background:Suppose Nginx has multiple sites, each with its own pool, so that when a site has a problem (such as a 502 error), other sites are unaffected.
The following is an example of setting up [www] and
first, Linux network-related, IfconfigIfconfig//View network card IP (yum install net-tools)Ifup Ens33/ifdown ENS33//Turn on the network card, turn off the network card, only one network card, once the network card is turned off the remote link, can
12.10 Nginx Access Log
The format of the Nginx access log is defined in the master configuration file.
vim/usr/local/nginx/conf/nginx.conf//Search Log_format
Log field Meaning:$remote _ADDR Client IP (public IP)$http IP of the
Character Match:. # matches any single character [] # matches any single character in the specified range [^] # matches any single character outside the specified range, and so on. /*/.* # does not need to be quoted on a string; for
Memory organizes memory in pagination, and each page has a relationship to the computer architecture, and each page in Linux has a correspondingstruct page{}correspond to it. contiguous memory >The a:void *kmalloc (int count,int flags) function is
In the previous article, we introduced the operating environment of building Nginx+uwsgi+flask in CentOS, and this section describes how to deploy our flask project to the environment.1. upload flask ProjectDownload WINSCP
8.6 Pipe symbol and job controlPipe character |, the result of the preceding command is given to the following command processing;FG puts the task to the foreground; BG throws it backstage and runs;#vmstat 1 keep showing the status of the
Please follow the Linux basic commands as required on the machine.CD command: Switch directories(1) Switch to directory/usr/localSuCd/usr/local(2) Go to the current upper directoryCd..(3) Go back to your home folderCD ~ls command: View files and
Linux cluster Architecture
Cluster introduction
keepalived Introduction
Configuring High Availability with keepalived
Introduction to load Balancing clusters
LVS Introduction
The debugging algorithm of LVS
LVS NAT
L04-Linux CentOS7 network configuration (can be connected to the Internet), l04-linuxcentos7
Although the system demonstrated here is CentOS7, it is also applicable in RHEL6.5, RHEL7, and CentOS6.5.
1.Tool: virtualbox, virtual machine: CentOS7
2.
Role of systemd
In the morning, the group discussed the role of systemd, which also led to a person's direct withdrawal from the group. In the spirit of seeking knowledge, he searched for some systemd and made some corresponding sorting;I. The birth
How to install the SVN server in UbuntuI. Installation
1. check whether or not to install
svn --version
Uninstalled
sudo apt-get remove --purge subversion
2. Installation
sudo apt-get updatesudo apt-get install subversion
3. view the version
# Svn
Sesearch command details, sesearch details
Guide
You can use the seinfo command to query the number of relevant rules provided by SELinux policies. If you find the relevant types or boolean values, use the sesearch command to
Sharing common linux commands and sharing common linux commands
Query logs in a certain period of time in a log
Sed-n'/16:17:20/,/16:17:36/P' test. log
The date must be printed in log. Use grep '2017-12-17 16:17:20 'test. log to query whether the
Operating system notes (3) process management and operating system process management
Scheduling
CPU scheduler (short term 100 ms): good repsonse time
Accept scheduler (long-term 1 + min): the degree of multiprogramming and
-A,-o, not usage in find,-a-o
-A,-o, and not in find.
Sudo? Find? /Etc? -Size? + 1 M? -Exec? Echo? {}? \;?? # In the/etc directory, find and display files with a file size greater than 1 MB. The files are separated by line breaks .??
Sudo? Find? /
Linux O & M commands
View the operating system information:
[Root @ prod_db_offline3 ~] # Uname-a # view operating system kernel information Linux prod_db_offline3 2.6.32-696.6.3.el6.x86 _ 64 #1 SMP Wed Jul 12 14:17:22 UTC 2017 x86_64 x86_64 x86_64
An atypical Linux route configuration scheme and a linux configuration Scheme
The problem was solved by a group of people last week.Atypical, UsedUnconventional methods. Although the Final SolutionVery unconventional,Very genericIt is full of a
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