HA (High availability) is highly available and has the following three modes of operation.
(1) Master-slave mode (asymmetric mode)
Working principle: The host work, the standby machine is in the monitoring preparation condition; When the host is
This article mainly introduces the variables in the shell use summary, this article summed up the variable syntax, common use forms and so on, and give the code examples, the need for friends can refer to the
The definition of a variable can only
The Shell function returns the value, generally has 3 kinds of ways: Return,argv,echo
1) Return statementThe return value of the Shell function, as in other languages, can be returned through the return statement.Example:
I accidentally found a very interesting book of Shell programming, E, content is 101 shell case, stick to tomorrow to read a, write a little experience. The following is an example 001:
#!/bin/sh # inpath-verifies That's a specified program
Conditional judgment: If statement
Syntax format:
If [expression]
then
Statement (s) to was executed if expression is true
fi
Note: There must be a space between the expression and the square brackets ([]), otherwise there will be a
A start to build the Chinese blog Alliance, both bloggers remind me to do Web site Daquan maintenance of this kind of website is very troublesome, need a lot of energy to debug some of the aborted site, but also to take the blog Encyclopedia of Pine
When it comes to shell-controlled multithreading, most of the online sharing is a pipeline control scheme. This scheme, Zhanggo blog has also been actual combat and share once: "Shell+curl website health status check script, grabbed the Chinese blog
NC (Netcat) is known as the "Swiss Army Knife" in the network tool, although the volume is small but powerful, NC the simplest function is the port scan, here I take note of it as a file transfer of magical use.
First look at the help information.
1. Character truncation:If the character truncation is a generic path, you can use both the basename and dirname tools:BaseName can truncate a filename from a file path
For example:
Copy Code code as follows:
$
Function:1. Only in the backup machine, the remote server only need to allow the backup machine with root through the key login;2. Configure which servers to back up on the backup machine, add or subtract the array in need_backup_servers;3.
Today, the company colleagues in a server on the other two servers with the computer room for file transfer, the two server files to store the same address, the password and key is consistent (our company in security to do a bit of a pervert), in
Method 1: Add a variable to an integer value by using expr, or an integer if it is performed correctly, or an error is executed, $? will be a value that is non 0
Copy Code code as follows:
Expr $args + 0 &>/dev/null
Method 2
I. Introduction to the ConceptNetwork programs are divided into server-side programs and client programs. The service side is the one that provides the service, and the client is the party requesting the service. But the reality is that some
Recently has been studying the shell script this piece, just idle down the whole under their own on the better information in some examples, the following is my brother of the birds in the regular expression inside the inside of the comparison of
The percentage of CPU, memory usage of the process seen through the top command is a floating-point number, and I need to process it while writing the script, so I learned a few things and summarized as follows.
In fact, the Shell (here is bash)
How to execute Java commands in Android Everyone knows that, the following section of the content for you to bring a specific analysis.
The Android program is based on Java development, and when we connect to the debugger, execute the ADB shell, we
What is a shell?
A shell is a special function program that is a interface between the core program (kernel) of the user and the Unix/linux operating system. Why do we say that the shell is an intermediary between the system's core program and its
#/bin/bashBefore you start the shell script, be sure to add the above sentence at the beginning of the script and write it with your head, without spaces and blank lines ahead of you. This means telling the system which shell to use to execute the
Original: http://apps.hi.baidu.com/share/detail/31263915In the shell, the comparison between the string and the numerical method is different, pay attention to distinguishInteger comparison:-eq equals, such as: if ["$a"-eq "$b"]-ne not equal to,
1. ShellFor a computer, its hardware is controlled by the kernel of the system, the user wants to control the computer, it must have the means to communicate with the system core. The shell is one of the means by which the user communicates with 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