标签:style blog ar color sp java div log ef
#!/bin/bash # Process_ID=`ps -ef |grep ‘LoginSinaWeiboCookie.jar‘ |grep -v grep |awk ‘{print $2}‘` Cookie_DIR=/home/chenpenghui/crawler/LoginSinaWeiboCookie kill -9 $Process_ID cd $Cookie_DIR java -jar LoginSinaWeiboCookie.jar -Xmx256M sleep 12h
12小时,强行重启一次。
java_linux_shell_定时kill 启动java程序
标签:style blog ar color sp java div log ef
原文地址:http://www.cnblogs.com/cphmvp/p/4120795.html