Sign inSign up

ppppxp/bxcq

By ppppxp

•Updated over 1 year ago

Image
0

82

ppppxp/bxcq repository overview

原作者:https://hub.docker.com/r/amilys/bxcq⁠

  1. 下载服务端文件,解压密码:opve.cn

  2. 打开ip.sh修改ip2为实际IP地址,运行ip.sh(打包的ip.sh脚本有个错误,复制下面的替换)

#!/bin/bash

#IP替换脚本

ip1="10.20.20.77"
ip2="10.20.20.252"

sed -i 's/'$ip1'/'$ip2'/' ./data/Debug/LogicServer/CrossSourceServer.config
sed -i 's/'$ip1'/'$ip2'/' ./data/Debug/LogicServer/data/config/Cross/CrossSourceServer.config
sed -i 's/'$ip1'/'$ip2'/' ./data/Debug2/LogicServer/CrossSourceServer.config
sed -i 's/'$ip1'/'$ip2'/' ./data/Debug2/LogicServer/data/config/Cross/CrossSourceServer.config
sed -i 's/'$ip1'/'$ip2'/' ./data/Debug_cross/LogicServer/data/config/Cross/CrossSourceServer.config


sed -i 's/'$ip1'/'$ip2'/' ./www/wwwroot/GameApp2/index.js
sed -i 's/'$ip1'/'$ip2'/' ./www/wwwroot/GameApp2/index1.js
sed -i 's/'$ip1'/'$ip2'/' ./www/wwwroot/GameApp2/GetServerList.php
  1. 映射bxcq3/www目录到容器/www

  2. 映射bxcq3/data目录映射到容器/data

5.映射端口81,9001,9002

docker run --itd -p 81:81 -p 9001:9001 -p 9002:9002 -v /mnt/bxcq3/www:/www -v /mnt/bxcq3/data:/data amilys/bxcq:latest

Tag summary

Content type

Image

Digest

sha256:e94928701…

Size

351 MB

Last updated

over 1 year ago

docker pull ppppxp/bxcq:1.0.0