Linux automatically restarts Tomcat script sharing _linux Shell

Copy Code code as follows: #!/bin/bash # #chkconfig: 35 88 14 #description: Tomcat Auto Start script #script by Okhelper Case "$" in Start echo "Here is start script ..." java_home=/usr/jdk1.6.0_13; Export Java_home Jre_home= $JAVA

Shell implements system time and BIOS time synchronization calibration script sharing _linux Shell

The script is mainly from the defined NTP server list to get the server address to synchronize, if the first unsuccessful, will continue to change the address to sync! Not perfect place also please point out! Copy Code code as follows: #

Shell implementation Arithmetic Simple method _linux shell

1. Simple method Copy Code code as follows: $ b=$ ((5*5+5-3/2)) $ echo $b 29 In the Linux shell, we can use $ (()) to put an expression in parentheses to achieve the function of the operation. 2. Other methods: Using:

Nginx Log Cutting script sharing _linux shell

Implementation method One #!/bin/bash logs_path= "/data/application/nginx/logs" pid_path= "/data/application/nginx/nginx.pid" Month= ' Date +%y-%m ' date= ' date +%y-%m-%d ' time= ' date +%h ' waittime=$ ( (24*60*60)) logcut () { CD $Logs

Extract IP information from apnic script share _linux Shell

Copy Code code as follows: #!/bin/bash # Download from ApnicRm-f Delegated-apnic-latestwget http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest # IPs allocated to.grep ' apnic| cn|ipv4| ' Delegated-apnic-latest | Cut-f-d ' | ' >

Use the shell to delete the files that correspond to the specified information and fields in the datasheet _linux shell

Use the MySQL shell command to read the database information, delete the specified fields, and the corresponding files of the field, the Linux platform. The preceding variable is defined as the data base configuration Copy Code code as

A concise summary of command line formats common to Linux shells _linux shell

Copy Code code as follows: #在后台执行 cmd command CMD & #命令序列. Execute multiple commands on the same lineCMD1; Cmd2 Execute multiple commands in a #在当前 shell in a set of forms{cmd1; cmd2;} Execute multiple commands in a #在子 shell in a set

The shell script implements monitoring swap space usage and viewing processes that occupy swap _linux shell

Copy Code code as follows: #!/bin/bash Echo-e ' Date +%y%m%d%h%m ' Echo-e "Pid\t\tswap\t\tproc_name" # Take out all directories in the/proc directory (the process name is the number is the process, others, such as sys,net, etc. store

The shell script realizes the hard disk space and the table space usage statistics and the mail informs the _linux shell

Copy Code code as follows: #/bin/bash #该脚本用于统计硬盘空间和表空间的使用情况, and Mail out #初始化环境变量 Source/home/oracle/.bash_profile #获得本机ip ip= '/sbin/ifconfig eth0 | grep bcast | Cut-d:-F 2 | Cut-d ""-F 1 ' #切换到本脚本目录 cd/home/oracle/shell/

The shell script implements a gentle way to restart the CentOS system _linux Shell

The main purpose is to restart the background of more important processes, if the use of killall-9 forced kill, may cause problems. such as database processes. The code is as follows: Copy Code code as follows: #!/bin/sh If [-Z "$"];

A shell script sharing _linux shell that monitors the changes in Linux directories and files

Recently saw a group of people chatting to their server has recently been Hung horse, and then want to use a script to monitor the Web directory changes in real-time files, that is, the directory of additions and deletions to the corresponding log

How to implement core file automatic generation of configuration files _linux Shell

This article describes the implementation of the core file automatic generation configuration method, the following steps: 1. Edit the Environment configuration file, let the shell start automatically set Ulimit Vi/etc/profile ulimit-c

Shell script extract rpm package _linux shell

There are times when you need to extract files from the RPM package without installing and installing RPM-related libraries and programs, and this little green script can help you achieve your wish. Note:1. This script comes from the Internet, the

Shell script gets the running time of the process _linux shell

In our system, I wrote a script to update some repository on a regular basis, but occasionally I encountered problems, such as when git pull might be stuck there (possibly due to a network problem at some point), which would hinder the next

jquery Shell Plug-in jquery.fancybox.js usage Example _jquery

This example describes the Jquery.fancybox.js usage of the jquery Pinball plug-in. Share to everyone for your reference, specific as follows: FancyBox is a jquery plug-in, powerful. Support to enlarge the picture to add shadow effect, for a group

Analysis of Java Hill Sort (Shell) algorithm _java

First, take an integer d1 less than n as the first increment, dividing the entire record of the file into D1 groups. All records that are multiples of the DL are placed in the same group. A direct insertion sort is performed within each group, and

fail2ban-0.8.14 Shell Automatic deployment script

#!/bin/bash#fail2ban-0.8.14.tar.gz#python > 2.4v#user:roottar  -zxf  fail2ban-0.8.14.tar.gzcd /root/fail2ban-0.8.14/python setup.py install cp /root/ Fail2ban-0.8.14/files/redhat-initd /etc/init.d/fail2banchkconfig --add fail2bansleep 1rm  -rf /root/

Shell implements a second-level task in the background

[email protected]:~# ls while50.sh while50.sh[email protected]:~# cat  While50.sh #!/bin/bashlogfile=/root/192.168.1.50.ping.logwhile truedo    echo  -n $ (date +%y-%h:%m:%s)  >> $logfile     ping -c1 -w1  192.168.1.50 >/dev/null     #ping   192.168.

Shell Basic Command && and | |

The && operator syntax is formatted as follows: Command1 && command2 [&& Command3 ...] 1. Use && connection between commands to implement logic and functions. 2. Only the command on the left of && returns True (command return value $?). = = 0) The

Shell Special Symbols

~ Home Catalogue ls ~"Inside the inverted quote is the command echo ' ls ' | ' Echo ls ' | echo ' echo ls ' | ' echo ' echo ls ' replace command $ ()! Take sung with the historical Command (!123) 123 is the history display#代表注视信息$ take Variable

Total Pages: 541 1 .... 521 522 523 524 525 .... 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.