|
@@ -7,10 +7,10 @@ ps aux | grep run_bszf_recommend.py | grep -v grep | awk '{print $2}' | xargs ki
|
|
|
echo "$(date "+%Y-%m-%d %H:%M:%S") 进程已杀死!"
|
|
|
|
|
|
echo "$(date "+%Y-%m-%d %H:%M:%S") 正在更新代码..."
|
|
|
-cd /data5/wangkun/crawler_benshanzhufu && git pull origin master --force
|
|
|
+cd /data5/wangkun/crawler_benshanzhufu/ && git pull origin master --force
|
|
|
echo "$(date "+%Y-%m-%d %H:%M:%S") 代码更新完成!"
|
|
|
|
|
|
echo "$(date "+%Y-%m-%d %H:%M:%S") 正在重启服务..."
|
|
|
-nohup python -u ./main/run_bszf_recommend.py >>./nohup.log 2>&1 &
|
|
|
+nohup python -u main/run_bszf_recommend.py >>./nohup.log 2>&1 &
|
|
|
echo "$(date "+%Y-%m-%d %H:%M:%S") 服务重启完毕!"
|
|
|
exit 0
|