设置时区

master
pan 4 years ago
parent e3576ae353
commit db8853f23e
  1. 40
      shell/checkPort
  2. 2
      shell/riskenv

@ -2,9 +2,37 @@
# 检查客户端和服务端端口是否存在
#存在返回0否则返回1
source /app/riskenv
if [[ ! -z "`/app/findPortPid $PORT`" && ! -z "`/app/findPortPid $serverPort`" ]]
then
echo 0
else
echo 1
fi
log=/var/log/checkPort.log
function foo() {
echo $1>>$log
}
function test(){
check=0
foo "=====================start check====================="
if [ -z "`/app/findPortPid $PORT`" ]
then
foo "server status:stop"
check=1
else
foo "server status:start"
fi
if [ -z "`/app/findPortPid $clientPort`" ]
then
foo "client status:stop"
check=1
else
foo "server status:start"
fi
if [ $check -eq 0 ]
then
foo "server and client is running"
return 0
else
return 1
fi
}
test
echo $?

@ -6,7 +6,7 @@ export PORT=2233
#客户端访问地址
export webClient=https://risk.kirito.cool
#客户端端口
export serverPort=5000
export clientPort=5000
#客户端监听地址
export listenAddress=0.0.0.0
#服务端访问地址

Loading…
Cancel
Save