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 shell script implementation based on SVN Code submission Statistics tool, this article directly gives the implementation of script code, the need for friends can refer to the
Nothing recently, I wrote a code
Using the Runtime.execute method, we can run Linux shell scripts in Java programs, or execute other programs Now through the Commandhelper.execute method can execute the command, the class implementation code as follows: Package
This article mainly introduces the shell commonly used operator Summary, this article explained the arithmetic operator, the relational operator, the test operator and so on content, needs the friend to be possible to refer to under
First, the
This afternoon wrote a simple one-click Automatic Virtual Host shell script, the script to implement automatic configuration Nginx virtual host, automatically create FTP account, automatically create a database, users, and automatically achieve
Principle: awk command, split formatted TXT (TXT file format with "|") divided) into groups, then spliced into HTML format (html-head-title-body-table)
Shell Source
#!/bin/sh file_input= ' txt.log ' file_output= ' txt2html.html ' td_str= '
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
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
If you manage more sites and servers, every time you modify a configuration file, it's pretty painful. The idea is to use a shell script to generate bulk configuration files and configuration data. The following script is a shell script for batch
Remove software
To remove the software is very simple, just execute the following command:
Copy Code code as follows:
# rpm–e Xanim
At this point, the user should be careful to use the name of the software Xanim, rather
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
Today read a script file when there are some places do not understand, find an article to read some, feel good, keep down.Let's say we've defined a variable as:
Copy Code code as follows:
File=/dir1/dir2/dir3/my.file.txt
You
Script requirements are as follows: This shell script is placed in the Crontab planning task, every 6 hours (this time according to the actual situation) to read the/var/log/secure script, take out the malicious guessing IP, if the unit time (a week)
In bash, Bash's math is a little awkward, it's hard to adapt and remember, so you have to write a blog post to make it easier to look through. There are four ways to perform mathematical operations:
A, let order
Copy Code code as follows:
Case statements are used to implement multiple if. else, but the usage is somewhat different, people who have learned other languages know that the case to match the variables, if there is a matching successful words to execute the corresponding
The Linux shell is much more powerful in programming than in Windows batching, whether in cycles or operations.
Bash supports one-dimensional arrays (multidimensional arrays are not supported) and does not qualify the size of the array. Similar to
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)
I. BACKGROUND
We have the Ubuntu Server 12.04 version installed on our servers, and because of the development environment, we have no centeos or red Hat, and we have a few big hard drives that need to be mounted to the root directory, which is not
Security code: Taohuatan depth thousand feet, less than mountain send Me love.File descriptor (FD): The file descriptor is a non-negative integer, and when you open an existing file or create a new file, the kernel returns aFile descriptors, and
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