启动:后台运行脚本run.sh
source shutdown.sh
rm -rf work/*
rm -rf webapps/bk
nohup ./bin/catalina.sh run >tomcat.txt &
停止:
#!/bin/bash
cur=`pwd`
pid=`ps -ef|grep $cur|grep -v "grep"|awk '{print $2}'`
echo "正在关闭进程"$cur "进程号:"$pid
kill -9 $pid
启动:后台运行脚本run.sh
source shutdown.sh
rm -rf work/*
rm -rf webapps/bk
nohup ./bin/catalina.sh run >tomcat.txt &
停止:
#!/bin/bash
cur=`pwd`
pid=`ps -ef|grep $cur|grep -v "grep"|awk '{print $2}'`
echo "正在关闭进程"$cur "进程号:"$pid
kill -9 $pid