From 08179e6358dfca112126a0d5a05ece9675cd243b Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 15:53:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/findPortPid | 2 +- shell/killNode | 2 +- shell/savePid | 2 +- shell/updateRisk | 7 ++++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/shell/findPortPid b/shell/findPortPid index aed0c1d..09e34da 100644 --- a/shell/findPortPid +++ b/shell/findPortPid @@ -1,5 +1,5 @@ #!/bin/sh - +# 查找端口pid if [ $# == 1 ] then netstat -antp|grep $1|awk '{c=$7;split(c,d,"/");print match(d[1],/\d+/)?d[1]:-1}' diff --git a/shell/killNode b/shell/killNode index 0c16c00..3f20bc3 100644 --- a/shell/killNode +++ b/shell/killNode @@ -1,5 +1,5 @@ #!/bin/sh - +#杀死进程 if [ -e *.log ] then pid=`stat *.log|awk 'NR>1{next}{c=$0;gsub(/\D/,"",c);print c}'` diff --git a/shell/savePid b/shell/savePid index 8a0ab23..702a286 100644 --- a/shell/savePid +++ b/shell/savePid @@ -1,5 +1,5 @@ #!/bin/sh - +#保存应用进程pid echo "findPort $1" while true do diff --git a/shell/updateRisk b/shell/updateRisk index d178712..d6c1222 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -1,12 +1,17 @@ #!/bin/sh - +#自动部署脚本 cd /app +#服务端端口 export PORT=2233 +#客户端访问地址 export webClient=https://risk.kirito.cool +#客户端端口 export serverPort=5000 +#客户端监听地址 export listenAddress=0.0.0.0 +#服务端访问地址 export apiServer=https://risk.kirito.cool