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