From 02d1811d504cee75f09e756ee438842b11cac75f Mon Sep 17 00:00:00 2001 From: liuxiaobo <1224730913@qq.com> Date: Sat, 31 May 2025 19:40:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/client/server/login.go | 2 +- server/supervisor.conf | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/server/client/server/login.go b/server/client/server/login.go index 0335482..2c92d6a 100644 --- a/server/client/server/login.go +++ b/server/client/server/login.go @@ -6,7 +6,7 @@ import ( ) func (s *ClientService) login() { - log.DebugF("user:% ready login", s.username) + //log.DebugF("user:%v ready login", s.username) s.SendMsg(pb.ServiceTypeId_STI_Login, int32(pb.MsgId_C2SUserLoginId), &pb.C2SUserLogin{ Username: s.username, Password: s.password, diff --git a/server/supervisor.conf b/server/supervisor.conf index 7f62bfe..69bc3c6 100644 --- a/server/supervisor.conf +++ b/server/supervisor.conf @@ -4,7 +4,7 @@ command=/home/ubuntu/game/gate -redis_host="114.132.124.145" -redis_port="6379" directory=/home/ubuntu/game ; 程序工作目录 user=ubuntu ; 运行用户 autostart=true ; 随 Supervisor 启动 -autorestart=true ; 自动重启 +autorestart=false ; 自动重启 startsecs=10 ; 启动等待时间 startretries=3 ; 启动重试次数 @@ -13,7 +13,7 @@ command=/home/ubuntu/game/login -redis_host="114.132.124.145" -redis_port="6379" directory=/home/ubuntu/game ; 程序工作目录 user=ubuntu ; 运行用户 autostart=true ; 随 Supervisor 启动 -autorestart=true ; 自动重启 +autorestart=false ; 自动重启 startsecs=10 ; 启动等待时间 startretries=3 ; 启动重试次数 @@ -22,6 +22,15 @@ command=/home/ubuntu/game/chat -redis_host="114.132.124.145" -redis_port="6379" directory=/home/ubuntu/game ; 程序工作目录 user=ubuntu ; 运行用户 autostart=true ; 随 Supervisor 启动 -autorestart=true ; 自动重启 +autorestart=false ; 自动重启 +startsecs=10 ; 启动等待时间 +startretries=3 ; 启动重试次数 + +[program:client] +command=/home/ubuntu/game/client -redis_host="114.132.124.145" -redis_port="6379" -redis_password="fox379@@zyxi" -sid=1 -num=1000 -v_mod="dev" ; 完整命令参数 +directory=/home/ubuntu/game ; 程序工作目录 +user=ubuntu ; 运行用户 +autostart=true ; 随 Supervisor 启动 +autorestart=false ; 自动重启 startsecs=10 ; 启动等待时间 startretries=3 ; 启动重试次数