瀏覽代碼

启动脚本

luojiehua 2 年之前
父節點
當前提交
e981f93570
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      BiddingKG/readme/start.md

+ 4 - 0
BiddingKG/readme/start.md

@@ -7,6 +7,8 @@
 source activate py37
 #切换目录
 cd /data/python
+#关闭接口
+ps -ef | grep run_extract_server | grep -v grep | cut -c 9-16| xargs kill -9
 #启动接口
 nohup gunicorn -w 11 --limit-request-fields 0 --limit-request-line 0 -t 1000 -b 0.0.0.0:15030 run_extract_server:app >> extract.log &
 
@@ -15,5 +17,7 @@ nohup gunicorn -w 11 --limit-request-fields 0 --limit-request-line 0 -t 1000 -b
 source activate py37
 #切换目录
 cd /data/python
+#关闭接口
+ps -ef | grep run_extract_server | grep -v grep | cut -c 9-16| xargs kill -9
 #启动接口
 nohup gunicorn -w 10 --limit-request-fields 0 --limit-request-line 0 -t 1000 -b 0.0.0.0:15030 run_extract_server:app >> extract.log &