There are two ways to permanently add static routes under Linux:One, add the route command 1, Route addroute add -net 192.56.76.0 netmask 255.255.255.0 dev eth0 #添加一条静态路由route add default gw 192.168.0.1 #添加默认路由route del -net 192.168.1.0/24
?About the book"Linux command line Daquan" mainly introduces the use of Linux command line, gradual, in layman's terms, guide the reader to master the command line of the use of methods.The Linux command line encyclopedia is divided into four parts.
1 Linux 1.1 Learning direction of Linux
Linux Operations Engineer: Server Planning, debugging optimization, daily monitoring, fault handling, data backup, log analysis, server paralysis, to start immediately.
Linux Embedded engineer:
Linux Common directives:LS display file or directory ls-l list file details ls-a lists all files or directories in the current directory, including hiddenLs-al display detailed file information, including hidden files mkdir creating a directoryMKDIR-
CD: Switch working directory
Command
Meaning
Cd
switch to the current user's home directory (/home/user directory), when the user logs in, the default directory is the user's home directory.
CD ~
Direct Read System InformationThe temperature information of the CPU can be obtained by reading the data in the following path, but the data read is not processed.cpu0:cat /sys/class/thermal/thermal_zone0/tempcpu1:cat /sys/class/thermal/thermal_zone1
Monitoring Linux Server disksServer disk performance testing is also a more interesting process. First of all, we need to figure out what's on disk, so here's a bird's-home dish.Not only do we have to figure out when the disk will be full, but also
Common Command ParametersA: Atime, tell the system not to modify the last access time for this file. S: That is, sync, once the application writes to the file, the system immediately writes the result of the modification to the disk. A: Append only,
1. Upload the installation package2. Unzip TAR-ZXVF zookeeper-3.4.5.tar.gz3. Change the name of MV zookeeper-3.4.5 Zookeeper14. Enter The zookeeper file to create The data file package, and use the memory mkdir5 Enter data and create the myID file
Swap size ChangeAssuming the current system swap size is 4GB, you want to increase the swap size to 5GB.The steps are as follows:
View current swap size
Free-h
Increase the 1GBswap size, assuming the file path and
A very full post: Http://www.nginx.cn/install
Before installing Nginx, first install the required dependencies on the server for Nginx to run.Catalogue selection: General Selection "/usr/local/"1. InstallationPcre LibraryOffline installation
In Linux, for data security, permission control is very important, in this case can be subdivided into two parts to understand hisPermission definitionsEach user of Linux belongs to a group and cannot be independent of the group. Linux file
NginxMachine Environment: Web host 192.168.2.18 centos7 test host 192.168.2.29Nginx ("Engine X") is a high-performance HTTP and reverse proxy server, is also a IMAP/POP3/SMTP proxy server, with less memory, concurrency and other advantages.Official
Experimental requirements:assigning addresses to PC1,PC2 using the DHCP Relay AgentExperimental steps:1. Configuring layer three switch SW12. Configure the Switch SW23. Configuring the server PC3 DHCP address pool4. Use VPCS to get an address for PC1
#AWK命令基础显示
Print the second area of the Install.log file that contains the data field row
awk ‘/data/ {print $2}’ install.log
View the first line of Num10.txt
head -n 1 num10.txt结果:10cat !$ #cat上次打开的文件,cat num10.txt
First, the application scenarioQuota disk quotas are commonly used for mail user settings in the Mail service, and for users in the FTP, Samba file service.To know whether the system will support quota disk quotas, execute the following commands
The chmod command is used to change access rights for Linux system files or directories. There are two ways to use this command:
One is a text-setting method that contains letters and operator expressions;
The other is a digital
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