更新注释

master
pan 4 years ago
parent f08278c365
commit 08179e6358
  1. 2
      shell/findPortPid
  2. 2
      shell/killNode
  3. 2
      shell/savePid
  4. 7
      shell/updateRisk

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# 查找端口pid
if [ $# == 1 ] if [ $# == 1 ]
then then
netstat -antp|grep $1|awk '{c=$7;split(c,d,"/");print match(d[1],/\d+/)?d[1]:-1}' netstat -antp|grep $1|awk '{c=$7;split(c,d,"/");print match(d[1],/\d+/)?d[1]:-1}'

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
#杀死进程
if [ -e *.log ] if [ -e *.log ]
then then
pid=`stat *.log|awk 'NR>1{next}{c=$0;gsub(/\D/,"",c);print c}'` pid=`stat *.log|awk 'NR>1{next}{c=$0;gsub(/\D/,"",c);print c}'`

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
#保存应用进程pid
echo "findPort $1" echo "findPort $1"
while true while true
do do

@ -1,12 +1,17 @@
#!/bin/sh #!/bin/sh
#自动部署脚本
cd /app cd /app
#服务端端口
export PORT=2233 export PORT=2233
#客户端访问地址
export webClient=https://risk.kirito.cool export webClient=https://risk.kirito.cool
#客户端端口
export serverPort=5000 export serverPort=5000
#客户端监听地址
export listenAddress=0.0.0.0 export listenAddress=0.0.0.0
#服务端访问地址
export apiServer=https://risk.kirito.cool export apiServer=https://risk.kirito.cool

Loading…
Cancel
Save