摘要:
声明:本文代码非原创,原创地址未找到,代码验证通过,保留,以备后用。#!/bin/sh## Firstly find the process of the tomcat....TOMCAT_PROCESS_STR=`ps aux | grep 'java.*tomcat' | grep -v grep`PROCESS_ARRAY=(${TOMCAT_PROCESS_STR// / })TOMCAT_PROCESS_ID=${PROCESS_ARRAY[1]}echo $TOMCAT_PROCESS_ID## Secondly send stop tomcat to see if 阅读全文