linux 启动服务,关闭服务脚本
start.sh#!/bin/shsleep 2kill -s 9 `ps -ef | grep /home/crmhdcc/web/huacrm/apache-tomcat-7.0.64/ | grep -v grep | awk '{print $2}'`rm -rf /home/crmhdcc/web/huacrm/apache-tomcat-7.0.64/work/Catalinar
·
start.sh
#!/bin/sh
sleep 2
kill -s 9 `ps -ef | grep /home/crmhdcc/web/huacrm/apache-tomcat-7.0.64/ | grep -v grep | awk '{print $2}'`
rm -rf /home/crmhdcc/web/huacrm/apache-tomcat-7.0.64/work/Catalina
rm -rf /home/crmhdcc/web/huacrm/apache-tomcat-7.0.64/logs/*
/home/crmhdcc/web/huacrm/apache-tomcat-7.0.64/bin/startup.sh &
stop.sh
#!/bin/sh
kill -s 9 `ps -ef | grep /home/crmhdcc/web/huacrm/apache-tomcat-7.0.64/ | grep -v grep | awk '{print $2}'`
更多推荐
已为社区贡献2条内容
所有评论(0)