![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
zhi_heart
这个作者很懒,什么都没留下…
展开
-
linux shell tomcat 一键重启
linux shell tomcat 一键重启 放在bin目录下#!/bin/sh#获取启动文件目录basePath=$(cd $(dirname $0);pwd)#根据目录查进程并killfor pid in $(ps -ef|grep $basePath |grep java|awk '{print $2}');do echo "killpid-$pid"原创 2015-06-16 11:05:45 · 816 阅读 · 0 评论 -
linux tomcat挂了自动重启
和tomcat同级,需要启动的需要包含”tomcat”字符 #!/bin/sh#获取目录basePath=$(cd $(dirname $0);pwd)#查找此目录所有带tomcat的文件夹echo ""echo "####################begin check####################"for tomcat in $(ls -F|grep /$|grep原创 2015-10-09 08:58:17 · 1697 阅读 · 1 评论