Remote modification of the Nrpe script preface: As an O & M personnel, frequent modification of monitoring is inevitable. It is better to change a small number of machines, if the amount is too large, it will not be easy. As the boss said, it would
In Shell script, the getopt example can easily use the format option with the corresponding parameter. The example is www.2cto.com Shell code #! /Bin/bash set -- 'getopt-q AB: c "$ @" 'while [-n "$1"] do case "$1" in-) echo "option-a";-B) value = "$2
In linux, the cache is cleared to release the memory system environment: Cent OS 5.4x64 www.2cto.com. Today, check the machine used for development. The memory usage is 11 GB, and most departments are cached, according to the computing method
During UBUNTU upgrade from UBUNTU 10.10 to UBUNTU 11.04, after downloading and installing more than 1600 files, manually killing CUPS twice, when the system succeeds, it gets stuck again (waiting for N hours): www.2cto.com is installing the new
Use linux to implement the route function of cisco's route-map policy (the two ports are 10.5.39.111 and 10.5.39.222 respectively). The linux ip address is 10.5.39.54/24 -----(10.5.39.5 layer-3 Switch 10.5.51.5) ----- the gateways of two users whose
Using netbeans in linux has been writing nginx module recently. A graduate student on the Internet said how good netbeans is, and decided not to use vim to start using netbeans. I started using netbeans in and made java for more than 10 years. I
Due to the frequent use of linux systems during daily work and study, you cannot avoid frequent installation of the system. However, repeated parameter settings during installation are a headache, therefore, we decided to configure a virtual machine
About jffs file system jffs (the journalling flash file system), it is called a log file system because when the system changes, it first writes the changes to the log, then, check whether the log is completely changed. The log write action is
In linux, UMASK is generally used to grant permissions to a directory or file when you create a directory or file. Here we need to explain two points: 1. For the directory, the x permission indicates that the directory can be accessed, so there is
In single-user mode, AIX resets the password when the password of the root user is lost. This is troublesome and requires you to restart the machine. For security, the password of the root user must be properly configured and kept. Step 1 of
Linux environment variable adding method summary linux environment variables with no double quotation marks, or variables do not need to be included {} is not sensitive, a small look at the profile file, it seems that if the system finds that the
A Required SoftwareBind-9.4.2.tar.gz // http://www.isc.org/Wget http://ftp.isc.org/isc/bind9/9.4.2/bind-9.4.2.tar.gz
2. Unzip and install# Tar zxvf bind-9.4.2.tar.gz# Cd bind-9.4.2#./Configure -- sysconfdir =/etc# Make# Make install
Three main
I have heard of Windows clusters, which can achieve load balancing and high availability, and I have no restrictions on clusters. Today, Marco gave a brief summary about Linux Clusters, so that you can learn more about cluster services in Linux. ----
PHP-fpm/cgi and APC or xcache encounter deadlocks.A machine keeps running PHP 5.3.x (fpm or fastcgi mode), and deadlock often occurs from time to time.
The performance is that the FCGI service cannot be connected. NGINX reports 502 bad gateway. At
User and group management commandsUseradd /create a userGrep /etc/shadow/verify whether the user is successfully created (the last line of the last created user is in the configuration file)Passwd /activate this account to log on and set a
An error occurred while installing Nginx.
./Configure: error: the HTTP rewrite module requires the PCRE library.
Install pcre-devel to solve the problemYum-y install pcre-devel
Error message:./configure: error: the HTTP cache module requires md5
1. Add a virtual network card with virtual machine hardware configuration. 2. Go to linux. In the network configuration, you can see an additional Nic interface eth1. You do not need to set the ip address and MAC address of this Nic interface.Set
PS1: the user's usual prompt.PS2: the first line is not complete. Wait for the prompt entered in the second line.
Echo $ PS1 can see the current prompt settingsFor example, Green is displayed and time and shell version are added.Export PS1 = "\ [\ e
Use the date command to convert the Basic time second to year, month, and day:Command:Date-d @ 1281161747Be sure not to forget the symbol "@"
# Obtain the current time by date# Date-d "-1 week" + % Y % m % d get last week date (day, month, year,
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