First, design ideas:
When Master and Slave are operating normally, Master is responsible for service, Slave is responsible for standby;
When Master hangs out, Slave Normal, Slave takes over the service, has the Write permission,
Including
ECHO 1. Show or hide files
ECHO 2. Cleaning up System garbage
ECHO 3. Unlock Registry
ECHO 4. Fix IE browser
ECHO 5. Turn off default sharing
ECHO 6. Management Control MMC
ECHO 7. Clear redundant Startup items
@ECHO off
@title Small
A shell program that replaces a section of a line near a keyword in a text file:
#!/bin/bash file=$1 findpattern=$2 linegap=$3 replacepattern=$4 substitue=$5 Help () {echo Help:echo \$1:file\ ' s full Path \ (include filename\) echo \$2:the key
Recently, to the internal network for debugging and access, bought 3 peanuts can only map 6 ports, is not enough to meet the needs, just have a friend to me said Ngrok can also be carried through the intranet, research for a few days, light
Copy Code code as follows:
Echo ' abc '. ' Def '; connect string with dot number
Echo ' abc ', ' Def '; Connecting strings with commas
So let's give some examples here. To recognize the difference between them.
Copy Code
One, Tianlong eight steps1. Connect to MySQL Database1 $link=mysqli_connect("localhost", "root", "Meiyoumima");2. Determine if the connection is successful1 if ($link) {23echo "database connection succeeded! "; 4 }else{56die ("Database connection
1,echo "AA" Test.txt and echo "BB" "test.txtThe original file is emptied and the content is written to the file, and the content is placed at the end of the file2,chmod go+w-r/home/zhangy//Add Write permission to group users and other
For Web programming, the most important thing is to access and read and write data. There may be many ways to store them, such as strings, arrays, files, and so on. arrays, which can be said to be a more important way of data application in PHP. PHP
1PHP2 //single-line comment3 #single-line comment4 5 /*6 Multi-line comments7 more8 more9 */Ten One $x= 1;//Global Variables globals A $y= 2;//All global variables are stored in an array of $globals[index], and the subscript contains the variable
Quotes in shell
1. Double quotation marks
$, ', \, Retain special meaning
Note that escape characters such as \ n are not supported by default when echo is not added.
Supported by printf
[Root @ Centos5 test] # echo "\ n"
\ N
[Root @ Centos5 test]
Ubuntu12.04 screen brightness adjustment method summary --- there is always one method for youToday, I suddenly felt that the screen was very eye-catching and I wanted to modify it, but I didn't know how to modify it in linux. I planned to modify
Shell string processing
Interception;Shell string truncation problem:1. Linux shell intercepts the first eight characters of the character variable by using the following methods:1. expr substr "$ a" 1 82. echo $ a | awk '{print substr (, 1, 8 )}'3.
In-depth analysis of the difference between comma and Dot in PHP. Copy the code as follows: echoabc. def; use the dot to connect to the echoabc and def strings; use a comma to connect to the strings. Here are some examples to identify their previous
How to learn about operator priority in php
Operator name result
$ A + $ B addition $ a and $ B's and
$ A-$ B subtraction $ a and $ B
$ A * $ B multiplication $ the product of a and $ B
$ A/$ B Division $ a divided by the operator of $ B
$ A % $ B
Some people often ask me, I heard that it is faster to process strings in PHP with single quotes. if there is a variable to replace, is it faster to connect with single quotes or double quotes? A simple answer is obviously pale and powerless. Let's
Shell quotes 1. double quotation marks $, ', \, reserved for special purpose. Note that [root @ Centos5test] # echo & quot; \ n & quot; is supported by the escape character "\ n" by default when echo is not added; \ n [root @ Centos5test] # [root @
Full php message book sharing, recorded in Blog 1. admin_login.php
Administrator login
2. admin. php
Administrator background
Administrator background
3. conn. php
4.
Shell_01 what is the basic operation? what is Shellshell? shell is a command interpreter echo $ SHELL -- through the environment variable cat/etc/shells -- view the switch of the shellshell currently registered to the System 1. temporary switch
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.