Experimental environment
A minimal installation of the CentOS 7.3 virtual machine
Installing NginxInstalling Nginx Dependency Packagesyum install -y pcre-devel zlib-devel openssl-devel wget gcc tree vim
Nginx relies on Pcre,
read:Brief introduction:The read command reads the value of a variable from the keyboard and is typically used in a shell script to interact with the user. The command can read the values of multiple variables at once, and the variables and input
I. Introduction of IFSThe Shell script has a variable called IFS (Internal field Seprator), the internal domain delimiter. The full definition is the shell uses the value stored in IFS, which are the space, tab, and newline characters by default, to
Some of the simple scripts that you've knocked over and put them on the occasional look, it won't be long before you feel very pediatric, but it should be helpful to understand the process control of shell scripts.#!/bin/bashp=176.202.52.For I in $ (
Note Using expr:The operator and the number used for the calculation have at least one space around it, otherwise the errorWhen using multiplication sign, a backslash must be used to mask its specific meaning.An enterprise-class case study of
Of course, PHP's date function is not possible to directly output Chinese date, but you can use this method to write a function of their own.Code to copy code as followsfunction today () {Date_default_timezone_set ("asia/chongqing");$a =date
How to install jre in RHEL5? -- Linux general technology-Linux technology and application information. For details, refer to the following section. Ladies and gentlemen, I downloaded the jre-6u22-linux-i586.bin, refer to the installation
Previously, Fl had the XSS Automatic repair function of the Smarty template, but it has never been supported by the PHP template. The main reason is that the output of the Smarty template recognition variable is relatively simple. You can determine
What is shell script? Shell is a tool that allows us to communicate with the system on the command line interface. shell scripts are programs written using shell functions, which use plain text files. Write some shell syntaxes and commands in it,
In the past few days, when writing Android. mk, sometimes I always want to print some variables or something. If ECHO is not available, I can find a way to access the Internet.
Finally, I found such an article quite well.
Address:
Document directory
Problem locating:
Subsequent prevention:
Problem: nosuchmethod is reported when the application is released. This problem does not occur during the test environment. Generally, this problem occurs because two identical
First, the batch file is a text file, and each line of this file is a DOS command (most of the time it is like the command line we execute at the DOS prompt ), you can use any text file editing tool such as edit in DOS or notepad in Windows to
What are the commands in the batch file?
For the time being, the commands in the batch file can be understood as the DOS command, and will be explained later. batch Processing, as its name implies, is a pile of things heap together for
Arithmetic Operations
The arithmetic operations mentioned here refer to addition (+), subtraction (-), multiplication (*), Division (/), and remainder (%, you can add parentheses to change the priority and only perform operations on integers (Linux
As we all know, if ECHO is followed by an environment variable, but this variable is empty, it is equivalent to echo without any parameters, that is, whether the current ECHO is on or off. The solution provided by many articles or tutorials is to
Use if... then
Single-layer, simple conditional
If [conditional statement]; then Command work content that can be executed when the conditional statement is set; FI
& Stands for and;
| Represents or;
["$ YN" = "Y"-
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.