Shell 腳本重啟項目
每次發打包好項目后都需要手動重啟項目,寫個Shell腳本一鍵重啟項目 Shell 腳本 Shell 說明 getopts:實現Shell腳本多參數 nohup:后台啟動項目 Shell 運行 聯系方式: 郵箱:iChochy@qq.com 網站:https ...
一 概述 工作中使用uwsgi時,每次需要進入到工作目錄,去執行uwsgi相關命令,比較繁瑣。這里整理了一個uwsgi重啟腳本 根據參考鏈接,修改了部分內容 定義了變量,修復了一些bug,增加了顏色輸出 注意:請根據實際情況,修改上面 個變量,即可使用。 效果如下: 文本參考鏈接: https: www. seo.cn linux .html ...
2019-09-18 20:25 0 369 推薦指數:
每次發打包好項目后都需要手動重啟項目,寫個Shell腳本一鍵重啟項目 Shell 腳本 Shell 說明 getopts:實現Shell腳本多參數 nohup:后台啟動項目 Shell 運行 聯系方式: 郵箱:iChochy@qq.com 網站:https ...
使用shell腳本命令重啟tomcat ...
--測試通過 vim restart_tomcat.sh#!/bin/bash# Filename: restart_tomcat.sh# Description: Restart tomcat# ...
今天寫了一個定時重啟tomcat的腳本 首先進行判斷進程是否存在,存在則進行kill,不存在則啟動; 如此循環; 啟動后break跳出循環; #!/bin/sh#date 2019-12-11#dan si#auto restart tomcat5 ...
NAME="demo-0.0.1-SNAPSHOT.jar" #想要殺死的進程ID=`ps -ef | grep "$NAME" | grep -v "grep" | awk '{print $2}' ...
...
1 2 ...