1 #!/bin/sh
2 cd /mnt/tomcat/tomcat_8082;
3 ps -ef|grep /tomcat_8082/ |awk '{print $2}'|xargs kill -9;
4 ./bin/startup.sh;
5 tail -f ./logs/catalina.out;
1 #!/bin/sh
2 cd /mnt/tomcat/tomcat_8082;
3 ps -ef|grep /tomcat_8082/ |awk '{print $2}'|xargs kill -9;
4 ./bin/startup.sh;
5 tail -f ./logs/catalina.out;