Today, when deployed in Jenkins, because developers frequently submitted code, resulting in Jenkins shell script in that frequent deployment, in order to prevent such problems, a special search to prevent the recurrence of code. Here's a look at the
If memcached has been installed in Linux and is deployed to the/usr/local/memcached path, next we will begin to install service management scripts for it to start and stop.
First of all, through VI in the/ETC/RC.D/INIT.D path to create a new script
Script A (test example 1)
The code is as follows
Copy Code
#!/bin/bashEcho ' Your are in the '
Q) Call another script file in the current script file?
Method One: Using source
Script second (test example 2)
Single modification:
The code is as follows
Copy Code
echo test:23456 | chpasswd
Batch modification:
First in a text file (assuming the name Users.txt) to prepare account information, the format is "account:
Some static page-oriented sites, may not be convenient to generate a sitemap. and in order to speed up seo/seo.html "target=" _blank "> Search engine collection, it is best to take the initiative to do a sitemap, through webmaster Tools to submit or
Using the Linux shell is my daily basic work, but I often forget some useful shell commands and L tips. Of course, I can remember the order, but I'm not sure I can remember how to use it to perform a particular task. So I began to record these
Because the work needs to validate the data submitted by the user, this is a simple date validation example, you need to know the students can refer to.
The IF statement in the shell needs to make a regular judgment and check the grammatical
The VI Editor is the standard editor for all UNIX and Linux systems, and it is not as powerful as any of the newest text editors, but simply introduces its usage and a small number of instructions. Because of any version of UNIX and Linux systems,
One, automatically padded: [Tab]
A lot of people should be able to do this by pressing the [TAB] key when entering commands, directories, or filenames. The system will help you fill in what you might want to enter, if more than one selection system
Example The difference between-E and-F is that-F stands for regular files (regular file), and-E represents all types of filesRefer to the following:-e filename true if filename exists-F filename True if filename is a regular file-L filename True
This article mainly introduces the shell implementation of multi-level menu system Installation script instance sharing, this script with multi-level menu to achieve lamp, LNMP installation display effect, the need for Friends can refer to:Hint:
(1) Replace one or more spaces in the text with commasThe text reads as follows:# Cat Text1 2 2 3 3 + 4 4 2 4(2) The Shell program code is:# Cat Text | Sed ' s/[' []*/,/g ' 1,2,42,2,3,43,3,44,4,,4,,2,4Script Description:
sRepresents the
1, test-f file 2, [-F file] 3, [[-F file]][-F file1-a-F file2] logic with [-f file1-o-F file2] logic or [-f file1] && [-f file2] the same as a string operation best double quotes such as-n-z = = = And a space is added to both sides of the equals
Getting started with Linux shell scripts--cut commandCutThe Cut command extracts text columns from a text file or text stream.Cut grammar[[email protected] ~]# Cut- D " Delimited character " -F fields for having a specific delimiter character [[
Progressive Web Apps is fast and installable, which means it can be used in an online, offline, intermittent, or slow network environment. To achieve this goal, we need to use a service worker to cache the application shell to ensure that it is
In the production environment, hosts may be modified by another administrator or user. allow allows more ip addresses to log on to machines. To facilitate unified management, you can change the allow and deny files to the default settings when
Online servers generally encounter a variety of log cutting. Similar detailed script articles have not been published before. This time, we will make up for the relevant content of the website. The following describes how to cut two logs, and how to
On an online server, you do not know what operations have been performed. When you log on to the server,-bash-4.1 # does not display the path. So I searched for a solution on the internet. The following solution can solve the problem:Vim ~ /.
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