This commit is contained in:
liuxiaobo 2025-05-31 19:40:52 +08:00
parent c699c8f393
commit 02d1811d50
2 changed files with 13 additions and 4 deletions

View File

@ -6,7 +6,7 @@ import (
) )
func (s *ClientService) login() { 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{ s.SendMsg(pb.ServiceTypeId_STI_Login, int32(pb.MsgId_C2SUserLoginId), &pb.C2SUserLogin{
Username: s.username, Username: s.username,
Password: s.password, Password: s.password,

View File

@ -4,7 +4,7 @@ command=/home/ubuntu/game/gate -redis_host="114.132.124.145" -redis_port="6379"
directory=/home/ubuntu/game ; 程序工作目录 directory=/home/ubuntu/game ; 程序工作目录
user=ubuntu ; 运行用户 user=ubuntu ; 运行用户
autostart=true ; 随 Supervisor 启动 autostart=true ; 随 Supervisor 启动
autorestart=true ; 自动重启 autorestart=false ; 自动重启
startsecs=10 ; 启动等待时间 startsecs=10 ; 启动等待时间
startretries=3 ; 启动重试次数 startretries=3 ; 启动重试次数
@ -13,7 +13,7 @@ command=/home/ubuntu/game/login -redis_host="114.132.124.145" -redis_port="6379"
directory=/home/ubuntu/game ; 程序工作目录 directory=/home/ubuntu/game ; 程序工作目录
user=ubuntu ; 运行用户 user=ubuntu ; 运行用户
autostart=true ; 随 Supervisor 启动 autostart=true ; 随 Supervisor 启动
autorestart=true ; 自动重启 autorestart=false ; 自动重启
startsecs=10 ; 启动等待时间 startsecs=10 ; 启动等待时间
startretries=3 ; 启动重试次数 startretries=3 ; 启动重试次数
@ -22,6 +22,15 @@ command=/home/ubuntu/game/chat -redis_host="114.132.124.145" -redis_port="6379"
directory=/home/ubuntu/game ; 程序工作目录 directory=/home/ubuntu/game ; 程序工作目录
user=ubuntu ; 运行用户 user=ubuntu ; 运行用户
autostart=true ; 随 Supervisor 启动 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 ; 启动等待时间 startsecs=10 ; 启动等待时间
startretries=3 ; 启动重试次数 startretries=3 ; 启动重试次数