[手工架设] Docker游戏服务端【手游】【雄霸三国志】
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/10d1a89da1e80f45b759a85535c3390f.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/c26f5634a41f95f56971818c215d9807.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/573d458911898e73cd0cc89966692cec.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/9022d0a786958b087a8bbc16ea76c0f1.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/d593faa023e2f6b307a7517dfa1cee8c.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/ec56a731a6becdca311392906663fdf7.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/ec56a731a6becdca311392906663fdf7.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/aee10092b29d4e68b8d4acee86cdefff.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/823761d970558bbdfb48f486584dc4c2.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/72a2e1e74e0a083df685f4e4643319ee.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/90bc171fd3a79a493aabda36781ee569.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/8b2736f309a3d2e16d992f9c370604fa.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/1a506f1d3576849f827cdcdabd73c35f.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/601d24f8eb629ae89b34e83425bedf0d.jpeg)
![[手工架设] Docker游戏服务端【手游】【雄霸三国志】](http://static.527wan.top/wp-content/uploads/replace/a6742d5092be5570da5dfa4725e9c408.jpeg)
(一)安装docker和docker compose
1.更新系统
Ubuntu20.04/Debian10
apt-get update && apt-get upgrade -y
Centos7
yum update -y
2.安装docker和docker compose
bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
输入命令后按照引导进行安装。
(二)搭建服务端
1.将sgz.tar文件上传到服务器root目录
2.镜像导出到服务器
docker load < sgz.tar
3.把sgz件夹整个文件夹上传到服务器root目录,并启动容器
cd sgz
docker compose up -d
4.登陆容器设置服务端并启动游戏
地址:ip:522 账号:root 密码:123456
systemctl restart mysql #重启数据库
修改服务器ip
sed -i ‘s/192.168.200.100/你的外网ip/g’ /data/server/slg-game1/bin/app.properties
sed -i ‘s/192.168.200.100/你的外网ip/g’ /data/server/slg-game2/bin/app.properties
mysql -u root -p123456 -D slg_login -e “UPDATE tbl_servers SET address = ‘你的外网ip:1030’ WHERE address = ‘192.168.200.100:1030’;”
mysql -u root -p123456 -D slg_login -e “UPDATE tbl_servers SET address = ‘你的外网ip:1130’ WHERE address = ‘192.168.200.100:1130’;”
mysql -u root -p123456 -D slg_login -e “UPDATE tbl_servers SET chat_address = ‘你的外网ip:1020’ WHERE chat_address = ‘192.168.200.100:1020’;”
chmod 777 /root/stop.sh
/root/start.sh #启动游戏
/root/stop.sh #关闭游戏
***如果遇到以上所有过程都正常,但还是无法进入游戏。可以重启一下游戏,就可以正常进入游戏了***
(三)客户端修改,替换以下路径中文件的IP‘192.168.200.100’
安卓客户端:
/assets/bin/Data/09be60d83b7b9b6419e152c590ce703a
1.将需要修改的文件用解压工具从客户端复制出来。
2.解压uabea.zip工具,运行UABEAvalonia.exe(过程中如需要安装.net6.0请同意下载并安装)
将需要修改的文件拉到运行中的窗口,选中appsettinginfo点击编辑数据,在弹出窗口找到192.168.200.100修改为你的实际ip并保存。
3.将修改好的文件替换到客户端。
如需要安装在真机,请自行签名。
CDK生成后台:
http://你的外网ip:88/ht/cdk
GM码:123456
玩家后台:
http://你的外网ip:88/ht
***本教程资源全部来自互联网,仅供研究学习使用,下载后请于24小时内删除,或购买正版。***
如遇夸克/网盘资源失效,请发帖反馈。站长会积极补链,同时在您的帖子下方评论告知。
请在下载后24小时内删除,切勿商用。使用者需自行承担相应法律责任,发布者概不负责。











请登录后发表评论
注册
社交账号登录