jenkins_job

#!/bin/bash
set -ex   #打印执行过程
BUILD_ID=DONTKILLME  #防止自杀

ssh dataexa@192.168.1.65 > /dev/null 2>&1 << eeooff
cd /home/dataexa/dataexa/nlp/ 
git clone http://git.gaofeng.com:83/kamala/kamala-product/kamala-aimarket/nlp.git
ps -ef | grep 5001 | grep -v grep | awk '{print $2}' | xargs kill -9  ##这里必须用xargs 否则会出现别的问题
source activate py36
nohup python -u PythonRPCImpl.py 192.168.1.65 5001 > nlp_server_$(date +%Y%m%d)_5001.log 2>&1 &
exit
eeooff
echo done!

相关文章:

  • 2021-08-10
  • 2021-12-23
  • 2021-11-18
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2021-05-11
  • 2022-12-23
猜你喜欢
  • 2021-08-15
  • 2021-09-29
  • 2021-10-20
  • 2021-11-24
  • 2022-02-16
  • 2021-11-10
  • 2022-12-23
相关资源
相似解决方案