linux下重启tomcat sh
#!/bin/sh
pid=`/sbin/pidofjava`
echo"/sbin/pidofjava"$pid
sleep2
if[-n"$pid"];
then
{
echo"==========tomcatisstart,nowkill$pid============"
kill-9$pid
echo"==kill-9$pid==="
sleep1
exportJAVA_HOME=/usr/java/jdk1.6.0_19
exportCATALINA_HOME=/usr/local/tomcat
cd/usr/local/tomcat/bin
'./startup.sh'
}
else
{
echo"==========tomcatisstop=====start======="
exportJAVA_HOME=/usr/java/jdk1.6.0_19
exportCATALINA_HOME=/usr/local/tomcat
cd/usr/local/tomcat/bin
'./startup.sh'
}
fi
sleep25
echo"dbstar"
相关推荐
liujiaoyage 2020-09-09
山有木兮卿有意 2020-06-25
Attend 2020-06-14
citic 2020-06-14
wandererdl 2020-06-14
lfjjia 2020-04-19
ajuan 2020-03-03
wangrui0 2020-02-20
LczPtr 2020-02-14
fcds00 2020-01-28
DonviYang 2020-01-08
Happyunlimited 2020-01-01
学习备忘录 2019-12-08
batoom 2011-03-06
pwl 2008-06-13
IsanaYashiro 2019-11-05
hehuistudent 2008-09-11