Using Nginx as a load balancer, proxy Web server, the user requested data points to the Nginx load balancer, Nginx is responsible for scheduling the backend Web server to provide services.Environment Construction and Description:Nginx Load Balancer
Gitlab backup files are displayed in timestamps, similar to: 1438624820_gitlab_backup.tar to make it easier toread, you want to convert the file name to a date format:2015-08-04_gitlab_ Backup.tarSo I looked for the method of time conversion in the
Practice One: Write a script1The value of the set variable file is/etc/passwd2. Turn to/etc/Say hello to each user in passwd and say what the ID is like: (Hint: line= ' Wc-l/etc/passwd | Cut-d" "-F1 ') Hello,root,your UID is 0. 3. Statistics a how
first, the expression of the blockBecause the shell can not define a two-dimensional array, so can only use one-dimensional array to represent the box, Tetris can be divided into 7 categories, each type of block is composed of four types of small
How to use:Format 1:last-nN Specify the number of accounts, the latest first n login information (user, terminal, IP, date, time and duration)Format 2:last-n Purpose: In daily work, if you want to troubleshoot the most recent years who are or have
String-related operations are often involved in writing shell programs. There are many command statements, such as awk,sed , that are capable of doing string operations. In fact, the shell built a series of symbols to achieve similar effects, using
When you practice select in Http://wiki.ubuntu.org.cn/Shell%E7%BC%96%E7%A8%8B%E5%9F%BA%E7%A1%80, you find that the direct SH xx.sh cannot be executed successfully.Script content:#!/bin/bashecho "What's your favourite OS?"Select Var in "Linux" "Gnu
Ctrl+A-JumpTo the start of the lineCtrl+B-MoveBack aCharCtrl+C-TerminateThe commandIs it the most used?Ctrl+D-DeleteFromUnder the cursorCtrl+E-Jumpto theEndof the lineCtrl+F-MoveForward aCharCtrl+K-DeleteTo EOLCtrl+L-ClearThe screenClear screen,
The shell is a command interpreter that provides interaction between the user and the operating system for a non-interactive interface that is oriented to the command line. The user enters commands at the command line, the shell interprets them, and
My original intention in this article was to remove the "copy SSH Channel" and "Copy ssh Session" functions from the remote SSH client. So I thought I could set it up on the SSH server, but looked at the Sshd_config man Manual, It is found that the
FunctionCase One :#!/bin/bashHello () {echo "Hahahah"}HelloExecutes the function with the result : hahahaCase two :#!/bin/bashFunwithreturn (){echo "The function is to get the sum of the number"Read-p "Input first number" NUM1Read-p "Input second
About redirectsAdditional redirection operatorsUse set-c collocation Posix shell : execute set -c command to open shell The so-called forbidden override option simple > redirect encountered when the destination file already exists
SED is a non-interactive text editor that can edit text files and standard inputSed simply edits a copy of the original file in the buffer and does not edit the original fileThree ways in which SED commands are invoked1. Call sed on shell command
Listen to people say that text classification when processing 100G text files, incredibly without big data, processing method is to use the shell split to split into a number of small files.Split commandNAME split-split a file into Piecessynopsis
First, the basic operation1. Important Shortcut keys
Tab
Complete commands, directories, parameters, filenames, etc.
CTRL + C
Force the current program to terminate
Ctrl+d
Keyboard input end
This article will explain some of the commands used in Linux and tips to help beginnersAn e v A l command will first scan the command line for all permutations before executing the command. This command applies to variables that scan for a time that
Here are some of the shells I've compiled and used for many years to share with you. Speaking of automation operations many people will talk about puppet, ansible,saltstack these tools I have used, and eventually gave up. The early configuration of
Array:A collection of a bunch of variables.Statement:Declare-a ArraynnameEach of these variables is Arrayname[index]Index starts from 0.Assignment value:Arrayname[index] = VALUEArrayname = (VALUE1 VALUE2 ...)Arrayname = ([index1]=value1
Fly2015I love cracking training first class elective assignments section 6 Practice example programs. Have to repeat that sentence, have not seen this shell, the shell is a compression shell, relative to the compression shell, the encryption shell
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