storage engine and transaction concepts Brief:1. What is a storage engine2. What is a transactionfirst, the storage engine
the way to store and manage data in layman's words
Image examples:
A bicycle keeper in a place: Lee, Zhang.
On the machine to open an account to colleagues, the result of SSH landing, complete, highlighting are not, but my own account can be. The first suspicion is that there is a problem with the. bashrc file setting, compared to 2 user directories, this
Problem: String output of ' 1,2,3,4,5 ' is used, separated by 1 2 3 4 5Feature: There are no spaces in the stringWorkaround 1:[Plain]View Plaincopy
#!/bin/bash
Var= ' 1,2,3,4,5 '
var=${var//,/} #这里是将var中的, replace with a space
Hardware Chapter
CPU-related
Lscpu #查看的是cpu的统计信息. Cat/proc/cpuinfo #查看CPU信息详细信息, such as the model of each CPU, frequency, etc.
Memory-related
Free-m #概要查看内存情况 The unit here is
Linux shell commandWhat is a shell?The Shell is the interface that connects the operating system kernel to the user.The terminal is the representation of the shell.the kernel version of Linux consists of three parts: the main version . Minor version
1.shell scripts are a collection of commands. Record a set of commands that need to be executed to the document, and then call the document.139 e-mail, receive the message at the same time by SMS notification.Shell Footsteps Writing recommendations:
In the previous blog, the implementation of the automated test program was written, and now the developer needs to know the running state of the process that was tested (in this case, the main process running on Linux) before the exception exited,
-mtime 0 represents files that are currently 0 days away from the file modification time, which is less than 1 days (24 hours) away from the current time.-mtime 1 is a file that is currently 1 days away from the file modification time, which is 1
Local variables in shell scripts define functions in the shell to make the code modular and easy to reuse code. But the scope of the variables and functions of the script itself can be confusing, and here's a look at the problem. (1)The variables
Standard input and output with standard error outputStandard input/The output is probably the most basic concept in the design principles of software tools..His idea was to:The program should have a data source,Data Export(where are the data going?),
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
Thinking: (1) get "." The I node number, called N (using stat)(2) ChDir. (using ChDir)(3) Find the node with inode number n and get its file name.Repeat the above operation until the current folder "." The inode value equals "..." The Inode
Assuming this is the content of a script x.sh, use sh x.sh arg1 to execute the script#!/bin/bashCD ' DirName $ '/.SOURCE scripts/status.shStart [email protected]First line #! /bin/bash show where bash is usedThe code in the second line ' will be
Shell script (vi)(2) awkA, awk programming mode#awk编程模式分三个阶段: Execute code Snippet before reading input file (identified by the BEGIN keyword)Execute code snippet after #读取输入文件时执行代码段, reading input file (identified by end keyword)B, pattern matching#
1.7 arrays and associative arrays
An array is a very important part of Shell scripting, and it uses indexes to store multiple independent independent data as a collection. An ordinary array can use integers only as an array index, and
Learning cycle, see a lot of for,while, or until, and select with less, here is a little summary of the next select this cycle.Basic structure:Select VALUE in LISTDoCOMMANDDoneAnd the reality out of the structure is probably a number before the
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
Shell script checks the memcache process and automatically restartsRevised version:#! /Bin/sh# Check memcache process and restart if downMm_bin = "/usr/local/bin/memcached"Mm_log = "/home/xxx/memcached_check.log"Mm_ports = ("11211" "11212 ")Mm_param
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