Tomcat random boot via shell under CENTOS7

Tomcat random boot via shell under CENTOS7What we are introducing today is the introduction of the configuration of Tomcat random boot through the shell under Centos7, and the replacement of the service from the systemd from the CENTOS7, so it is a

Get Script Path in Shell

#!/usr/bin/bashdir_old=$ (PWD)absolute_script_path=$ (CD $ (dirname $) && pwd)relative_script_path=$ (dirname)Wrong_absolute_script_path= $dir _old/$relative _script_pathecho "Current PATH: $dir _old"echo "Absolute_script_path is: $absolute

Shell command _case

Grammar:Case "Variable" in"Variable 1")...;; #输出两个分号"Variable 2")...;; #输出两个分号"Variable 3")...;; #输出两个分号*)...;; #输出两个分号Esac 123456789101112131415161718192021222324252627 #!/bin/bash# Author:James 2016-10-15echo "want to output

What the shell is, preliminary knowledge of various shells, suitable for beginners

What's the shell? What's the use? I believe this is a question most people have had with the shell. Below is a small series for everyone to explain their own explanations, I hope to be helpful to everyone.What is a shell?The shell is a shell of the

"Linux rookie 2" Shell Base command

Diffdiff file File1 to compare two different files-C display rows around the top and bottom-U uniformly output patches in a certain format-R comparison of files in two directoriesPatch File File.path Patching-B Plus-B backup source filesgrepgrep Key

Lao Li share: "Linux shell Script Raiders" Essentials (VI)

1. Print Network interface list[touch_more]# ifconfig | cut-c-10 | Tr-d ' | Tr-s ' \ n 'Eth0Lowww.qixoo.qixoo.com//cut-c-10; The first 10 characters of the output;Tr-d "; Delete all spaces;Tr-s ' \ n '; Compress repeated line breaks2. View Name

8 ways to intercept shell script strings

Tag: The shell operator represents the deletion of the first character net article BSP comSuppose there is a variable var=http://www.aaa.com/123.htm.1. # Intercept, delete the left character, leave the right character.Echo ${var#*//}where Var is the

Basic shell command

###### #shell脚本命令 ############# #1. grep command #######grep keyword File | directory # #在文件或目录中查找含有关键字的行Grep-i # #忽略大小写-N # #显示关键字所在的行-C # #显示过滤结果的个数-V # #反向过滤-e "keyword 1| keyword 2" # #过滤多个关键字-R Directory # #在目录中查找含有关键字的文件Note: ^ keyword #

Shell Scripting Practices

Common shell scripting use cases, from the online reference and after the modification of the work, in addition to the wiki in the company to write records, it is necessary for a blog to record a drop.Combat Problem 1:Use the For loop to create a

Example of use of eval in shell

Function Description: Tell the shell to remove the eval parameters and re-calculate the contents of the parameters.Syntax: eval [parameter]Supplementary Note: Eval can read a series of parameters and then execute according to the characteristics of

Shell script commands

######################## # # #6. Shell script Command # # ######################### # # #1. diff####diff file File1 # # compare two different files 650) this.width=650; "Src="

Shell's 99 multiplication table

echo-n non-newline output$echo-N "123" $echo "456" final output 123456 instead of 123456 echo-e handling special characters if the following character appears in the string, it is handled in particular, not as a general text output: \a a warning; \b

Shell launches Hadoop cluster

Original, reproduced please specify. Thank youShell launches Hadoop cluster1: Clear Boot order1) Start zookeeper cluster (in CentOS 4-02,centos6-02,centos7-02 respectively)app/zookeeper-3.4.5/bin/zkserver.sh Start//startup processapp/zookeeper-3.4.5/

The grep command of the Linux shell

grep commandgrep Example:[OPTIONS] PATTERN [FILE ...][Email protected]:~# grep ' root '/etc/passwd root:x:0:0:root:/root:/bin/bash [email protected]:~# grep "$USER"/ ETC/PASSWD Root:x:0:0:root:/root:/bin/bash [email protected]:~# grep ' whoami '/etc/

Shell Cutting Scripts

#!/bin/bash#return error code#0: Success#1: Parameter Error#6: Custom.log file is empty#7: Cut File Error#8: Up log file successTar_dir_file_max=30main_log_file_max=1024Main_log_name= ' Custom.log 'Cut_main_log_file= "custom_$ (date +"%y%m%d%h%m ").

Linux Learning Diary-shell scripts and Scheduled Tasks

This article will aim to implement regular automatic backups of the MySQL database, and introduce the perfect collaborative process between shell scripts and scheduled tasks. Where the shell script is responsible for the specific backup operation,

Input and output in the shell (Bash Shell 03)

Input and output in the shellStandard input: KeyboardStandard output: Terminal displayThe >> append is a newline appendEcho- n do not trailing line breaks-e enable escape function to interpret backslashes-e disables the escape function that

The basic knowledge of the 13th chapter before you learn shell scripts

1. Set the environment variable histsize so that it can save 10,000 command history.   vim/etc/profile   change histsize=1000 to histsize=10000 2. Why do I set PS1 (ps1= "[\[email protected]\h \w]\$")    display the results to be different from

Shell instance: Temporarily solve the problem of automatic disconnection of rsync

Requirements: The company has two backup servers, one from the beginning, every night from the server began to synchronize some data on the main service, but rsync always disconnected, tried a lot of methods are useless, wrote a script to solve this

SWT Shell Setup window in the middle of the screen

/*** Setup window is located in the middle of screen* @param the Shell to adjust the position of the Window object*/public static void Center (shell shell){Get screen height and widthint screenh = Toolkit.getdefaulttoolkit (). Getscreensize ().

Total Pages: 541 1 .... 364 365 366 367 368 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.