In the forum to see a lot of people want to cancel the application of boot, so I want to know how to achieve, but Baidu a bit, the results are how to let the application boot, Baidu search data more and more no hope.Finally, Google gets a result,PM
In practice, it is sometimes necessary to remotely start programs on other Linux hosts from the Web management interface, which can be easily met by SSH protocol. In fact, in the Hadoop architecture, this principle is used when the DN is started on
Write operations scripts through if statements and variables,A key to install the lamp environment of the script;A key source installation lamp script, the first decomposition of the various functions of the script;Print Menu:1) Install Apache Web
One, CD switch directoryCD/ETC switch to/etc Directory CD ~ Switch to home directoryCd.. Return to the parent directory CD. /.. Return to the top level two directoryCD-Returns the directory where it was before entering this directorySecond, echo
grepIf you want to use a regular expression, add the parameter Grep-e "[a-z]+" #使用正则表达式or egrep "[a-z]+"-a-b output matches a few lines before or after the line-C to display a few lines at the same time-e matches multiple styles, such as GREP-E "cat"
The 1 script is as follows[[email protected] ~]# vim 99.sh #!/bin/bash # 9*9 Table # 2015.5.26 by Luzhi for i ' {1..9}do for J ' {1..9} do If [$j-le $i] then c=$ (($i * $j)) ECHO-E-n "$j * $i = $c \ T" fi do echo "" Done2 Operating effect650)
Someone demonstrated a zsh, and looked very cool. The shell must be unique, so it's a piece of it.Zsh, like Bash, is also a shell, except that it has its own differences, either gifted or inferior. When I started writing this record, I just
recently learned Linux system logs and scheduled tasks on the subway coming home from work with inspiration. , try to write your own first script to monitor if there is a malicious login to the server, send an email to notify the administrator. Not
LS is the command to view files in directories and directoriesNow let's look at the use of this commandLsThe syntax of LS is mainlyLS View directory contentsLs-l Viewing folder detailsLs-a Viewing hidden filesLs-a view hidden files, but does not
One, Shell interpreterShell interpreter, the bridge between the user and the operating system kernelThe shell is between the operating system kernel and the user, is responsible for receiving the user input operation instruction (command), and runs
7. Passing of script parameters7.1.shift commandBrief introduction:Shift n Shifts the parameter position to the left n bits at a timeExample#!/bin/bashusage () { echo "usage: ' basename ' filenames"}totalline=0# The following statement $# the
Gzexe Help Shell Scripting Encryption onFirst, Introductionmany times our script will involve some private information, such as: User name, password, or other important information, we use some encryption to block this information, to ensure that
Shut down the system: shutdown [options] [TIME] [warning message]-K does not really shut down just send a warning message to all users-R restart immediately after shutdown-H does not restart after shutting down the machine-F Quick shutdown without
Reproduced:http://imysqldba.blog.51cto.com/1222376/616805There are three ways to execute a shell scriptBash script name sh script name chmod +xUse the following statement to test#a. SH (does not have extension)CD/Pwdecho "Complete"However, the
While Condition;doStatmentDoneUntil Condition;doStatmentDonePractice:Write a script: every five seconds to see if JT has landed, did not login to continue to execute, landed the Stop command650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4
Today when writing a shell script to find the need to set the user's password, and the setting of the password is interactive, so in the script is obviously not very good, so the Internet to find information, found the following two non-interactive
Linux automatically installs JDK shell script, linuxjdkshellAutomatically install the JDK shell script in Linux
A: The machine running this script, Linux
B: The machine on which JDK is to be installed, Linux
First, log on to machine B where jdk is
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