jenkins 簡單搭建

使用@head 保證最新版本

 

 

 

 

查找並kill 在重啓項目

for pid in $( ps -ef | grep -v grep | grep account |grep 1001|cut -c 10-15);
do
    echo $pid;
    kill -9 $pid;  
    echo ' shutdown  account succeed ';
done;
sleep 2s
screen -wipe 
sleep 2s
screen   -dmS  account ./start.sh 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章