SSH Secure Automatic Logon
A is a local host (that is, a machine used to control other hosts);b is a remote host (that is, a controlled machine server), if IP is 172.24.253.2;Both A and B systems are Linux.
The command on a:
The code
Create a scriptThere are a lot of different shells in Linux, but we usually use bash (Bourne again shell) for Shell programming because bash is free and easy to use. So the script I've provided in this article is all about using bash (but in most
Description
SED is the abbreviation for stream editor (stream editor). It can perfectly match regular expressions. Sed and awk are the most important two commands for file editing. Especially involves a lot of regular expression of the problem, I
For example, to compare strings, to determine whether a file exists and whether it is readable, and so on, usually use "[]" to represent the conditional test.Note: The space here is very important. To ensure that the square brackets are blank. I
[[Email protected] shell]# date +%y year, 4-digit2018[[Email protected] shell]# date +%y year, 2-digit18[[Email protected] shell]# date +%m Month04[[Email protected] shell]# date +%m M, number of minutes57[[Email protected] shell]# date +%d13[Email
This article directory:1.1 Document Descriptor (file DESCRIPTION,FD)1.2 Copying of file descriptors1.3 Redirect Order is important: ">file 2>&1" and "2>&1 >file"1.4 Changing the redirect target for the current shell environment1.5 Closing file
Compile-language:The program needs a special compilation process before execution, which compiles the program into a machine language file, the runtime does not need to be re-translated, the results of the direct use of the compilation is OK. The
This time using Haproxy only test the web side of high availability and load balancing, the problem is that Haproxy is a single point, so you also need to keepalived haproxy high availability, the next explanation.Server:*.*.*.*:haproxyTwo HTTPWhat
Note content:8.6 pipe symbol and job control8.7/8.8 Shell Variables8.9 environment variable configuration fileNote Date:2017.8.158.6 pipe symbol and job control 650) this.width=650; "src="
Ext.: http://blog.csdn.net/ithomer/article/details/7954577Shell function return value, generally there are 3 ways: Return,argv,echo1) Return statementThe return value of the Shell function, which can be returned by a return statement, as the return
One, the following commands can be used to manipulate process tasks:PS Lists the processes that are running in the system.kill sends a signal to one or more processes (often used to kill a process).Jobs Lists the status of the tasks that are started
Interview and actual combat exam questions: monitoring the Web Site Directory (/var/html/www) All files have been maliciously tampered with (the contents of the file has been changed), The scheduled task executes every 3 minutes if there is a file
Learn the first script from the shell, thanks to cloud Li Qiangqiang Teacher's shell programming tutorial
To create a shell script file:Touch menu.shTouch index.shTouch welcome.sh
To give the script file permission to execute:chmod a+x
Learn the first script from the shell, thanks to cloud Li Qiangqiang Teacher's shell programming tutorial
To create a shell script file:Touch menu.shTouch index.shTouch welcome.sh
To give the script file permission to execute:chmod a+x
Laboratory has a server in the room, installed is the Ubuntu Server,ip for automatic allocation, so once the IP changes can not be remote operation, must go to the computer room to record the new IP. Learned a few days after the shell think, is it
Directory:CD: Switch directoriesCD path: Switch to the file pathCD ~[username]: Switch to the user's home directory,CD-: Switch to the directory where you firstPwd:pring working directory: Displays the current directorymkdir: Creating a Directory-P:
(a) file creation command 1.touch commandFor example, the Touch ABC command creates an empty file named ABC in the local directory2.CP commandThe CP command allows us to copy the contents of a file to a file of the same name or name, and copy the
Contents1. Shell Introduction1.1. What is shell?1.2. Shell Classification2. Shell syntax2.1. Define Variables2.2. Variable type2.2.1. Character Set Variables2.2.2. Digital constant definition2.2.3. Array2.2.4. System Variables2.3. Operators and
Csidl description and instructions for use:Csidl indicates the Identifier value of a special folder in Windows Shell. The special folder here refers to the folder defined by Windows Shell, for example, "My documents", "recycle bin ", "Inernet cache
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.