#!/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小时,强行重启一次。
时间: 2024-10-19 11:35:36