#!/bin/bash
ps -ef | grep java | grep tt | grep 'catalina.startup.Bootstrap start' | grep -v grep | awk '{print $2}' | xargs kill -9
echo kill tt ok...
echo start tt....
bash startup.sh
echo start website ok...
sleep 5
datestr=`date +%Y-%m-%d`
echo "today:(${datestr})"
sleep 5
tail -f -n 100 ../logs/catalina.out ../logs/localhost.${datestr}.log /opt/log/app-tt.log
Tomcat自动重启
最新推荐文章于 2023-07-31 15:30:23 发布