Giter Club home page Giter Club logo

dnf's Introduction

地下城与勇士容器版本

CircleCI Docker Image GitHub license

Contact US

For cooperation and suggestions please contact [email protected] or [email protected]

说明

该项目是将地下城与勇士(毒奶粉、DNF、DOF)整合成一个Docker镜像的项目 如何想实际部署,则只需要拷贝其中的部署文件夹即可,即deploy目录。 本项目使用官方Centos: 6.9为基础镜像,通过增加环境变量以及初始化脚本实现 应用的快速部署。

感谢 xyz1001大佬提供libhook.so优化CPU占用 源码

站库分离详见 XanderYe/dnf

如果觉得本项目和XanderYe/dnf对你有帮助,可以点一下Star支持下我们,谢谢。

2.1.4 Release Plan

1.支持假人
2.支持一款流行的网页GM_Tool
3.通过插件支持几款登陆器

自动化构建

该项目已经接入CircleCI,会自动化构建每一个版本

部署流程

Centos6/7安装Docker

先升级yum源

yum update -y

下载docker安装脚本

curl -fsSL https://get.docker.com -o get-docker.sh

运行安装docker的脚本

sudo sh get-docker.sh

启动docker

systemctl enable docker
systemctl restart docker

关闭防火墙

systemctl disable firewalld
systemctl stop firewalld

关闭selinux

sudo sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

创建swap(如果内存足够可以直接忽略)

/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=8000
mkswap /var/swap.1
swapon /var/swap.1
sed -i '$a /var/swap.1 swap swap default 0 0' /etc/fstab

查看操作系统是否打开swap的使用(如果内存足够可以直接忽略) sudo vim /etc/sysctl.conf 将vm.swappiness的值修改为100(优先使用swap),没有该配置就加上

vm.swappiness = 100

最后执行以下命令使配置生效:

sysctl -p

https://www.cnblogs.com/EasonJim/p/7777904.html

拉取镜像

以下命令三选一

docker pull 1995chen/dnf:centos5-2.1.3
docker pull 1995chen/dnf:centos6-2.1.3
如何您需要使用centos7作为基础镜像的特殊需求,可以使用:
docker pull 1995chen/dnf:centos7-2.1.3
所有镜像版本列表请参考[记得点赞三连,帮助更多的人了解该镜像]:
https://hub.docker.com/repository/docker/1995chen/dnf

简单启动

# 创建一个目录,这里以/data为例,后续会将该目录下的mysql以及data目录挂载到容器内部
mkdir -p /data/log /data/mysql /data/data
# 2.1.0版本镜像启动时会自动初始化mysql数据
# 启动服务
# PUBLIC_IP为公网IP地址,如果在局域网部署则用局域网IP地址,按实际需要替换
# GM_ACCOUNT为登录器用户名,建议替换
# GM_PASSWORD为登录器密码,建议替换
# DNF_DB_ROOT_PASSWORD为mysql root密码,容器启动是root密码会跟随该环境变量的变化自动更新
# WEB_USER为supervisor web管理页面用户名
# WEB_PASS为supervisor web管理页面密码(可以访问PUBLIC_IP:2000来访问进程管理页面)
docker run -d -e PUBLIC_IP=x.x.x.x -e WEB_USER=root -e WEB_PASS=123456 -e DNF_DB_ROOT_PASSWORD=88888888 -e GM_ACCOUNT=gmuser -e GM_PASSWORD=gmpass -v /data/log:/home/neople/game/log -v /data/mysql:/var/lib/mysql -v /data/data:/data -p 2000:180 -p 3000:3306/tcp -p 7600:7600/tcp -p 881:881/tcp -p 7001:7001/tcp -p 7001:7001/udp -p 10011:10011/tcp -p 11011:11011/udp -p 10052:10052/tcp -p 11052:11052/udp -p 7200:7200/tcp -p 7200:7200/udp -p 2311-2313:2311-2313/udp --privileged=true --cap-add=NET_ADMIN --hostname=dnf --cpus=1 --memory=1g --memory-swap=-1 --shm-size=8g --name=dnf 1995chen/dnf:centos5-2.1.3

docker-compose部署[群晖推荐]

Yaml文件

k8s启动

部署文档

如何确认已经成功启动

1.查看日志 log
├── siroco11
│ ├── Log20211203-09.history
│ ├── Log20211203.cri
│ ├── Log20211203.debug
│ ├── Log20211203.error
│ ├── Log20211203.init
│ ├── Log20211203.log
│ ├── Log20211203.money
│ └── Log20211203.snap
└── siroco52
├── Log20211203-09.history
├── Log20211203.cri
├── Log20211203.debug
├── Log20211203.error
├── Log20211203.init
├── Log20211203.log
├── Log20211203.money
└── Log20211203.snap
查看Logxxxxxxxx.init文件(其中xxxxxxxx为当天时间,需要按实际情况替换),四国的初始化日志都在这里
成功出现四国后,日志文件大概如下,四国初始化时间大概1分钟左右,请耐心等待
[root@centos-02 siroco11]# tail -f Log20211203.init
[09:40:23] - RestrictBegin : 1
[09:40:23] - DropRate : 0
[09:40:23] Security Restrict End
[09:40:23] GeoIP Allow Country Code : CN
[09:40:23] GeoIP Allow Country Code : HK
[09:40:23] GeoIP Allow Country Code : KR
[09:40:23] GeoIP Allow Country Code : MO
[09:40:23] GeoIP Allow Country Code : TW(CN)
[09:40:32] [!] Connect To Guild Server ...
[09:40:32] [!] Connect To Monitor Server ...

2.查看进程
在确保日志都正常的情况下,需要查看进程进一步确定程序正常启动
[root@centos-02 siroco11]# ps -ef |grep df_game
root 16500 16039 9 20:39 ? 00:01:20 ./df_game_r siroco11 start
root 16502 16039 9 20:39 ? 00:01:22 ./df_game_r siroco52 start
root 22514 13398 0 20:53 pts/0 00:00:00 grep --color=auto df_game
如上结果df_game_r进程是存在的,代表成功.如果不成功可以重启服务

3.查看进程管理页面 可以通过访问http://PUBLIC_IP:2000端口来访问进程管理页面,可以在 页面上点击dnf:game_siroco11或dnf:game_siroco52进程的Tail -f来查看日志。

重启服务

该服务占有内存较大,极有可能被系统杀死,当进程被杀死时则需要重启服务
重启服务命令

docker restart dnf

或在进程管理页面(http://PUBLIC_IP:2000页面手动重启相关进程)。

默认的网关信息

网关端口: 881
通讯密钥: 763WXRBW3PFTC3IXPFWH
登录器版本: 20180307
登录器端口: 7600
GM账户: gmuser
GM密码: gmpass

可选的环境变量

当容器用最新的环境变量启动时,以下所有的环境变量,包括数据库root密码都会立即生效 需要更新配置时只需要先停止服务

docker stop dnf
docker rm dnf

然后用最新的环境变量设置启动服务即可

# 自动获取公网地址[默认为false]
AUTO_PUBLIC_IP
# 公网或局域网IP地址
PUBLIC_IP
# GM管理员账号
GM_ACCOUNT
# GM管理员密码
GM_PASSWORD
# GM连接KEY(自定以密钥请使用网关生成的密钥,因为密钥有格式限制,不符合格式的密钥会导致登录器一致卡在网关连接那里)
GM_CONNECT_KEY
# GM登录器版本
GM_LANDER_VERSION
# DNF数据库root密码
DNF_DB_ROOT_PASSWORD
# DNF数据库game密码(必须8位)
DNF_DB_GAME_PASSWORD
# supervisor web页面用户名
WEB_USER
# supervisor web页面密码
WEB_PASS
# ddns开关,默认为false,打开配置为true
DDNS_ENABLE
# ddns域名
DDNS_DOMAIN
# Netbird服务器地址
NB_MANAGEMENT_URL
# Netbird初始化KEY
NB_SETUP_KEY

统一登陆器5.x版本,需要添加hosts,否则无法进入频道

PUBLIC_IP(你的服务器IP)  start.dnf.tw

请注意PUBLIC_IP手动设置后AUTO_PUBLIC_IP、DDNS、Netbird都会默认禁用。

如果需要使用AUTO_PUBLIC_IP、DDNS、Netbird需要设置PUBLIC_IP=''

最后需要注意的是PUBLIC_IP、AUTO_PUBLIC_IP、DDNS和Netbird只会有一个生效。

FAQ

1.点击网关登录,没反应,不出游戏(请透过Garena+执行)

  • A: windows7需要用管理员权限运行网关,windows10请不要用管理员权限运行网关
  • A: 无法使用虚拟机Console、VNC等访问Windows。
  • A: WIN+R输入dxdiag检查显示-DirectX功能是否全部开启。
  • A: 没有覆盖客户端补丁。

2.服务端不出五国

  • A: 机器内存不够,swap未配置或配置后未生效,通过free -m查看swap占用内存
  • A: 服务器磁盘空间是否足够
  • A: 如果更换过PVF,请确保PVF是未加密的,而且需要同步更换对应的等级补丁
  • A: 机器内存低于2G可以尝试修改--shm-size=2g或1g
  • A: swap占用为0,通过free -m查看swap使用率,通过sysctl -p查看设置是否正确,设置正确依旧swap占用为0,需要重启服务器。

3.镜像运行报错

  • A: 尝试更换其他镜像
  • A: 部分阉割系统可能不支持--cpus, --memory, --memory-swap, --shm-size尝试去除这些配置

4.生成网关时出现非法字符提示

  • A: 默认用户名密码gm_user,gm_pass中带有下划线"_",与统一6.x版本的网关不兼容,可以尝试使用5.x版本网关或者更换默认网关用户名和密码

5.灰频道或频道点击无法进入

  • A: 检查Linux服务端防火墙是否关闭
  • A: 检查云服务器厂商相关端口是否放开
  • A: 客户端windows是否配置hosts
  • A: PUBLIC_IP是否填错,windows需要能够访问到这个配置的PUBLIC_IP
  • A: 使用统一补丁需要检查网关生成的登陆器的IP
  • A: 使用Dof7.6补丁需要检查DNF.toml中的IP

6.点击登录后报错(请重新安装Init)

  • A: PVF加密错误,需要重新加密PVF
  • A: 使用Dof7.6补丁,需要恢复成未加密PVF

7.统一网关无法连接到数据库

  • A: 数据库默认端口3000,用户名使用root,密码默认88888888 ,请确保3000端口在云服务厂商配置里放开

8.接收频道信息失败

  • A: 检查Linux服务端防火墙是否关闭
  • A: 检查云服务器厂商相关端口是否放开
  • A: 五国未成功跑出

9.登陆器版本过期,请下载最新登陆器

  • A: 生成登录器,需要和【网关设置】中登录器版本一致

10.正在连接网关,登陆器无法连接网关

  • A: 检查Linux服务端防火墙是否关闭
  • A: 检查云服务器厂商相关端口是否放开
  • A: 五国未成功跑出

11.新建角色键盘无法输入

  • A: 与客户端有关,部分客户端没优化好会出现这个问题
  • A: windows7下需要用管理员权限运行启用中文输入法程序(可以加群问群友),或使用系统自带英文输入法
  • A: windows10需要使用系统自带的英文输入法
  • A: 使用Dof7.6补丁

12.如何挂载DP

  • A: 不需要挂载DP,默认已经使用DP

13.没有固定公网IP

  • A: 环境变量AUTO_PUBLIC_IP 可以启动容器时自己获取公网ip,自动重启的话需要自己写脚本去检测并重启容器
  • A: 客户端使用统一网关登录器+DOF7补丁,支持域名配置;统一补丁貌似不能用域名

客户端地址下载

链接: https://pan.baidu.com/s/10RgXFtpEhvRUm-hA98Am4A 提取码: fybn

统一网关下载

链接:https://pan.baidu.com/s/1Ea80rBlPQ4tY5P18ikucfw 提取码:bbd0

Dof7补丁下载

链接: https://pan.baidu.com/s/1rxlGfkfHTeGwzMKUNAbSlQ 提取码: ier2

沟通交流

QQ 1群:852685848(已满)
QQ 2群:418505204(已满)
QQ 3群:954929189
欢迎各路大神加入,一起完善项目,成就当年梦,800万勇士冲! (群内没有任何的收费项目)

申明

虽然支持外网,但是千万别拿来开服。只能拿来学习使用!!!
虽然支持外网,但是千万别拿来开服。只能拿来学习使用!!!
虽然支持外网,但是千万别拿来开服。只能拿来学习使用!!!

🤝 特别感谢

特别感谢Jetbrains为本项目赞助License

Jetbrains

dnf's People

Contributors

1995chen avatar spacevector avatar xanderye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dnf's Issues

server启动失败

服务启动失败,日志为:
$ more Log20221010.init [14:34:25] [!] Init Taiwan Garena Auth Key ... publickey.pem Success [14:34:25] [!] Init GlobalData ... [14:34:25] - DBConnector Init(masterdb 127.0.0.1/3306/game/d_taiwan) Success [14:34:25] - DBConnector Get Connection Info Success [14:34:25] - Open DB ... [14:34:25] - Open(type: 1, 127.0.0.1/3306/game/d_taiwan [14:34:25] - Open(type: 2, 127.0.0.1/3306/game/taiwan_cain [14:34:25] - Open(type: 3, 127.0.0.1/3306/game/taiwan_cain_2nd [14:34:25] - Open(type: 4, 127.0.0.1/3306/game/taiwan_cain_log [14:34:25] - Open(type: 6, 127.0.0.1/3306/game/taiwan_login [14:34:25] - Open(type: 7, 127.0.0.1/3306/game/taiwan_prod [14:34:25] - Open(type: 8, 127.0.0.1/3306/game/d_guild [14:34:25] - Open(type: 9, 127.0.0.1/3306/game/taiwan_game_event [14:34:25] - Open(type:10, 127.0.0.1/3306/game/d_taiwan_secu [14:34:25] - Open(type:11, 127.0.0.1/3306/game/taiwan_login_play [14:34:25] - Open(type:12, 127.0.0.1/3306/game/taiwan_cain_auction_gold [14:34:25] - Open(type:13, 127.0.0.1/3306/game/taiwan_se_event [14:34:25] - Open(type:14, 127.0.0.1/3306/game/taiwan_billing [14:34:25] - All DB Open Success [14:34:25] - Init Query Table Success [14:34:25] - Load GM List From DB [14:34:25] - GM m_id: [14:34:25] captcha data initialization failed [14:34:25] [!] Init GlobalData Fail

我在一台内存足够大的设备上运行server。运行命令如下:
docker run -d -e PUBLIC_IP=10.0.22.117 -e DNF_DB_ROOT_PASSWORD=88888888 -e GM_ACCOUNT=dpeng -e GM_PASSWORD=123456 -v /mnt/ssd/dpeng/software/mydata/log:/home/neople/game/log -v /mnt/ssd/dpeng/software/mydata/mysql:/var/lib/mysql -v /mnt/ssd/dpeng/software/mydata/data:/data -p 3000:3306/tcp -p 7600:7600/tcp -p 881:881/tcp -p 20303:20303/tcp -p 20303:20303/udp -p 20403:20403/tcp -p 20403:20403/udp -p 40403:40403/tcp -p 40403:40403/udp -p 7000:7000/tcp -p 7000:7000/udp -p 7001:7001/tcp -p 7001:7001/udp -p 7200:7200/tcp -p 7200:7200/udp -p 10011:10011/tcp -p 31100:31100/tcp -p 30303:30303/tcp -p 30303:30303/udp -p 30403:30403/tcp -p 30403:30403/udp -p 10052:10052/tcp -p 20011:20011/tcp -p 20203:20203/tcp -p 20203:20203/udp -p 30703:30703/udp -p 11011:11011/udp -p 2311-2313:2311-2313/udp -p 30503:30503/udp -p 11052:11052/udp --cpus=32 --memory=64g --memory-swap=-1 --shm-size=16g --name=mydata 1995chen/dnf

镜像版本:1995chen/dnf:latest

服务端容器首次启动显示五国后,客户端显示服务器不可用。

Hello,

我现在按照 https://post.smzdm.com/p/a7d3vrp9/ 这篇文章步骤已经把服务端和客户端都弄好了,但是还是无法进入游戏,客户端、网关管理工具和补丁都是从文中链接下载的。

容器启动显示五国:
image

但是客户端进去服务器都是不可用:
76a32a916fe14a3c0c3b16bce3da1ad3

服务器配置:8核(vCPU) 16 GiB CentOS 7.9 64位

docker run --rm \
-e DNF_DB_ROOT_PASSWORD=88888888 \
-v /opt/conf/dnf/log:/home/neople/game/log \
-v /opt/conf/dnf/mysql:/var/lib/mysql \
-v /opt/conf/dnf/data:/data \
1995chen/dnf:stable /bin/bash /home/template/init/init.sh


docker run -d \
-e PUBLIC_IP=公网IP \
-e DNF_DB_ROOT_PASSWORD=88888888 \
-e GM_ACCOUNT=gm_user \
-e GM_PASSWORD=gm_pass \
-v /opt/conf/dnf/log:/home/neople/game/log \
-v /opt/conf/dnf/mysql:/var/lib/mysql \
-v /opt/conf/dnf/data:/data \
-p 3000:3306/tcp \
-p 7600:7600/tcp \
-p 881:881/tcp \
-p 20303:20303/tcp \
-p 20303:20303/udp \
-p 20403:20403/tcp \
-p 20403:20403/udp \
-p 40403:40403/tcp \
-p 40403:40403/udp \
-p 7000:7000/tcp \
-p 7000:7000/udp \
-p 7001:7001/tcp \
-p 7001:7001/udp \
-p 7200:7200/tcp \
-p 7200:7200/udp \
-p 10011:10011/tcp \
-p 31100:31100/tcp \
-p 30303:30303/tcp \
-p 30303:30303/udp \
-p 30403:30403/tcp \
-p 30403:30403/udp \
-p 10052:10052/tcp \
-p 20011:20011/tcp \
-p 20203:20203/tcp \
-p 20203:20203/udp \
-p 30703:30703/udp \
-p 11011:11011/udp \
-p 2311-2313:2311-2313/udp \
-p 30503:30503/udp \
-p 11052:11052/udp \
--name=dnf 1995chen/dnf:stable

登录器和 Script.pvf 都已经按照文章中的操作替换了。

执行docker restart dnf后会卡在这一步:

[!] Init Log Success
m_Server_info.lls_key,: 3240332317335214766634233322344377569687
lls_key :: 3240332317335214766634233322344377569687
[!] Server key Check OK
        - cfg path: ./cfg/siroco52.cfg
        - pid path: ./pid/siroco52.pid
[!] Init Taiwan Garena Auth Key ... publickey.pem Success
[!] Init GlobalData ...
        - DBConnector Init(masterdb 127.0.0.1/3306/game/d_taiwan) Success
        - DBConnector Get Connection Info Success
        - Open DB ... 
                - Open(type: 1, 127.0.0.1/3306/game/d_taiwan
                - Open(type: 2, 127.0.0.1/3306/game/taiwan_cain
                - Open(type: 3, 127.0.0.1/3306/game/taiwan_cain_2nd
                - Open(type: 4, 127.0.0.1/3306/game/taiwan_cain_log
                - Open(type: 6, 127.0.0.1/3306/game/taiwan_login
                - Open(type: 7, 127.0.0.1/3306/game/taiwan_prod
                - Open(type: 8, 127.0.0.1/3306/game/d_guild
                - Open(type: 9, 127.0.0.1/3306/game/taiwan_game_event
                - Open(type:10, 127.0.0.1/3306/game/d_taiwan_secu
                - Open(type:11, 127.0.0.1/3306/game/taiwan_login_play
                - Open(type:12, 127.0.0.1/3306/game/taiwan_cain_auction_gold
                - Open(type:13, 127.0.0.1/3306/game/taiwan_se_event
                - Open(type:14, 127.0.0.1/3306/game/taiwan_billing
        - All DB Open Success
        - Init Query Table Success
        - Load GM List From DB
        - GM m_id: 

建立数据库初始化的时候报错,没反应,不会出日志

建立数据库初始化的时候报错,没反应,不会出日志。
使用命令如下:
docker run --rm -v /opt/dnf/log:/home/neople/game/log -v /opt/dnf/mysql:/var/lib/mysql -v /opt/dnf/data:/data 1995chen/dnf:stable /bin/bash /home/template/init/init.sh
输入完命令之后,不出日志,直接跳过,如图:
image

进入频道报错

[17:26:51] virtual void MonitorTcpThread::dispatch(void*)(1876): AUCTION - invoke InitTcp() by time out or disconnect
[17:26:51] virtual void MonitorTcpThread::dispatch(void*)(1932): Cera AUCTION - invoke InitTcp() by time out or disconnect
[17:26:51] bool BaseServerProxy::SendTcpPacket(char*, int)(349): cannot send packet because Auction Server is disconnected
[17:26:51] send_packet(687): SEND ERROR DISCONNNECT NOW FD[61] : 32(Broken pipe)
[17:26:51] int BaseServerProxy::OnTcpSend()(399): Auction Server OnSend() Socket[61] Error(Broken pipe)
[17:26:51] int BaseServerProxy::OnTcpSend()(402): Disconnect to Auction Server (send_packet() returns minus value)
[17:26:51] virtual void BaseServerProxy::Disconnect()(328): BaseServerProxy::Disconnect(), ServerName:Auction Server,SocketState:1,IP:127.0.0.1,Port:30803,Socket:61
[17:26:51] bool BaseServerProxy::SendTcpPacket(char*, int)(349): cannot send packet because Cera Auction Server is disconnected
[17:26:51] send_packet(687): SEND ERROR DISCONNNECT NOW FD[62] : 32(Broken pipe)
[17:26:51] int BaseServerProxy::OnTcpSend()(399): Cera Auction Server OnSend() Socket[62] Error(Broken pipe)
[17:26:51] int BaseServerProxy::OnTcpSend()(402): Disconnect to Cera Auction Server (send_packet() returns minus value)
[17:26:51] virtual void BaseServerProxy::Disconnect()(328): BaseServerProxy::Disconnect(), ServerName:Cera Auction Server,SocketState:1,IP:127.0.0.1,Port:30603,Socket:62
[17:26:55] void CUser::DisConnSig(DISCONN_SIG, bool, int)(2359): from (10) m_id[0] uid[7], send(0:1), recv(1), ip(120.245.112.126), dungeon(-1)
[17:26:55] void CUser::UpdateLogout(bool)(8928): trace mid:7 playTime:0 login_time:0 now_time:1671960415
[17:26:55] void CUser::UpdateLogout(bool)(8930): trace mid:7 playTime:0 login_time:1671960415 now_time:1671960415

docker run之后查看日志就看到报错了

[01:02:20] int CmmChannelProxy::SendPacket(char*, int)(200): SEND ERROR DISCONNNECT NOW FD[40] : 32(Broken pipe)
[01:02:20] int CmmChannelProxy::RecvPacket()(276): RECV ERROR DISCONNNECT NOW FD[40] : 107(Transport endpoint is not connected)
[01:02:20] int CmmChannelProxy::SendPacket(char*, int)(200): SEND ERROR DISCONNNECT NOW FD[40] : 32(Broken pipe)
[01:02:20] int CmmChannelProxy::RecvPacket()(276): RECV ERROR DISCONNNECT NOW FD[40] : 107(Transport endpoint is not connected)

服务端无法启动

版本:1995chen/dnf:centos7-1.0.1
数据库初始化:

....
See the manual for more instructions.

You can start the MySQL daemon with:
cd / ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Failed to get D-Bus connection: Operation not permitted
Starting MySQL. SUCCESS!

一直定在这里 然后我手动docker stop掉了

启动server

......
------------------------------------------
-		Server Frame Start Ver1.0       -
------------------------------------------
Start up TCPThread
Epoll init::6000
succeeded in binding TCP socket port #30603
Reloading script file : ./cfg/point_siroco.cfg
***************Fail to exec(select count(*) from auction_history). process exits.************

这项目是不是有后门啊

docker启动后从夜里到中午, 不断有恶意ssh连接

[root@g4rvf log]# lastb
samuel   ssh:notty    103.136.42.230   Tue Jul 12 11:21 - 11:21  (00:00)    
samuel   ssh:notty    103.136.42.230   Tue Jul 12 11:21 - 11:21  (00:00)    
kafka    ssh:notty    103.136.42.230   Tue Jul 12 11:20 - 11:20  (00:00)    
kafka    ssh:notty    103.136.42.230   Tue Jul 12 11:20 - 11:20  (00:00)    
root     ssh:notty    103.136.42.230   Tue Jul 12 11:19 - 11:19  (00:00)    
git      ssh:notty    128.199.228.73   Tue Jul 12 11:19 - 11:19  (00:00)    
git      ssh:notty    128.199.228.73   Tue Jul 12 11:19 - 11:19  (00:00)    
harry    ssh:notty    164.92.147.209   Tue Jul 12 11:18 - 11:18  (00:00)    
harry    ssh:notty    164.92.147.209   Tue Jul 12 11:18 - 11:18  (00:00)    
root     ssh:notty    103.136.42.230   Tue Jul 12 11:18 - 11:18  (00:00)    
root     ssh:notty    103.136.42.230   Tue Jul 12 11:17 - 11:17  (00:00)    
arma3ser ssh:notty    117.220.15.119   Tue Jul 12 11:16 - 11:16  (00:00)    
arma3ser ssh:notty    117.220.15.119   Tue Jul 12 11:16 - 11:16  (00:00)    
root     ssh:notty    103.136.42.230   Tue Jul 12 11:16 - 11:16  (00:00)    
odoo     ssh:notty    92.255.85.70     Tue Jul 12 11:15 - 11:15  (00:00)    
odoo     ssh:notty    92.255.85.70     Tue Jul 12 11:15 - 11:15  (00:00)    
julio    ssh:notty    117.220.15.119   Tue Jul 12 11:15 - 11:15  (00:00)    
julio    ssh:notty    117.220.15.119   Tue Jul 12 11:15 - 11:15  (00:00)    
public   ssh:notty    103.136.42.230   Tue Jul 12 11:15 - 11:15  (00:00)    
public   ssh:notty    103.136.42.230   Tue Jul 12 11:15 - 11:15  (00:00)    
mysql    ssh:notty    20.63.143.58     Tue Jul 12 11:14 - 11:14  (00:00)    
mysql    ssh:notty    20.63.143.58     Tue Jul 12 11:14 - 11:14  (00:00)    
ubuntu   ssh:notty    117.220.15.119   Tue Jul 12 11:14 - 11:14  (00:00)    
root     ssh:notty    103.136.42.230   Tue Jul 12 11:14 - 11:14  (00:00)    
ubuntu   ssh:notty    117.220.15.119   Tue Jul 12 11:14 - 11:14  (00:00)    
lxy      ssh:notty    103.136.42.230   Tue Jul 12 11:13 - 11:13  (00:00)    
lxy      ssh:notty    103.136.42.230   Tue Jul 12 11:12 - 11:12  (00:00)    
haiyun   ssh:notty    164.92.147.209   Tue Jul 12 11:12 - 11:12  (00:00)    
demo3    ssh:notty    117.220.15.119   Tue Jul 12 11:12 - 11:12  (00:00)    
haiyun   ssh:notty    164.92.147.209   Tue Jul 12 11:12 - 11:12  (00:00)    
demo3    ssh:notty    117.220.15.119   Tue Jul 12 11:12 - 11:12  (00:00)    
user     ssh:notty    103.136.42.230   Tue Jul 12 11:11 - 11:11  (00:00)    
user     ssh:notty    103.136.42.230   Tue Jul 12 11:11 - 11:11  (00:00)    
ubuntu   ssh:notty    117.220.15.119   Tue Jul 12 11:11 - 11:11  (00:00)  

arm设备如何折腾?

运行提示
Status: Downloaded newer image for 1995chen/dnf:stable
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /bin/bash: exec format error

游戏登录器在哪?

遇到的几个问题
1,如果宿主机已经安装了mysql,或者3306端口被占用,初始化会失败

2,游戏登录器没找到在哪

可否将启动服务的命令从systemctl更换为service?

用docker pull下来后如果是用systemctl start mysqld总会出现Failed to get D-Bus connection: Operation not permitted的问题,这好像是因为docker的权限问题导致,可否更改为用service命令启动?如果你觉得麻烦,可以说下如何让用户自己修改吗?

sh get-docker.sh这步报错

Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de

ERROR: Unsupported distribution ''

错误是这样的,用的CentOS6.9报的错。

我按照步骤安装 报错了,我重试了两次

我按照步骤安装 报错了,我重试了两次,每次都是先全部删除镜像和/data下所有内容,然后先执行数据库,再执行服务端
因为本机的7000 和 7001端口已使用 我在docke往外端口时用了17000和17001 我的理解应该不会有问题才对,而且日志中的错误没找到原因,我还修改了gm密码和外网ip,但我觉得不应该受到这个影响才对
系统CentOS 7.9.2009 x86_64(Py3.7.9)
执行服务端命令如下,数据库命令直接仓库中复制的
docker run -d -e PUBLIC_IP=X.X.X.X -e DNF_DB_ROOT_PASSWORD=88888888 -e GM_ACCOUNT=gm_user -e GM_PASSWORD=6xxxxxxx6a -v /data/log:/home/neople/game/log -v /data/mysql:/var/lib/mysql -v /data/data:/data -p 3000:3306/tcp -p 7600:7600/tcp -p 881:881/tcp -p 20303:20303/tcp -p 20303:20303/udp -p 20403:20403/tcp -p 20403:20403/udp -p 40403:40403/tcp -p 40403:40403/udp -p 17000:7000/tcp -p 17000:7000/udp -p 17001:7001/tcp -p 17001:7001/udp -p 7200:7200/tcp -p 7200:7200/udp -p 10011:10011/tcp -p 31100:31100/tcp -p 30303:30303/tcp -p 30303:30303/udp -p 30403:30403/tcp -p 30403:30403/udp -p 10052:10052/tcp -p 20011:20011/tcp -p 20203:20203/tcp -p 20203:20203/udp -p 30703:30703/udp -p 11011:11011/udp -p 2311-2313:2311-2313/udp -p 30503:30503/udp -p 11052:11052/udp --cpus=1 --memory=1g --memory-swap=-1 --shm-size=8g --name=dnf 1995chen/dnf:centos6-2.0.2
日志文件如下:
Log20221124.log
Log20221124.init.log
Log20221124.cri.log

请问如何挂载dp

我试过修改/root/run文件
if $PRELOAD_LD;then
LD_PRELOAD=/lib/libhook.so ./df_game_r siroco11 start &
sleep 2
LD_PRELOAD=/lib/libhook.so ./df_game_r siroco52 start &
else
./df_game_r siroco11 start &
sleep 2
./df_game_r siroco52 start &
fi
。修改为
LD_PRELOAD=/data/ext/dp2.6/dp2/libdp2pre.so ./df_game_r siroco11 start &
LD_PRELOAD=/data/ext/dp2.6/dp2/libdp2pre.so ./df_game_r siroco52 start &
,但是重启docker之后又恢复成上面的了

卡在了Init DataManager ...

/data/log/siroco11/Log20220121.init 文件中停留在了 /data/log/siroco11/Log20220121.init,docker logs 信息

2-01-21 10:51:00.438995[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.439061[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.439066[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.439070[INFO][framework] gunnersvr start init
2022-01-21 10:51:00.439076[INFO][framework] change work dir to /home/neople/secsvr/gunnersvr
2022-01-21 10:51:00.440121[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.440174[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.440179[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.440183[INFO][framework] zergsvr start init
2022-01-21 10:51:00.440188[INFO][framework] change work dir to /home/neople/secsvr/zergsvr
2022-01-21 10:51:00.442367[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.442431[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.442436[INFO]------------------------------------------------------------------------------------------------------
2022-01-21 10:51:00.442439[INFO][framework] secagent start init
2022-01-21 10:51:00.442445[INFO][framework] change work dir to /home/neople/secsvr/zergsvr
2022-01-21 10:51:00.454319[INFO][framework] cfgsdk init succ. start task succ
2022-01-21 10:51:00.454440[INFO][framework] cfgsdk init succ. start task succ
2022-01-21 10:51:00.454529[INFO][framework] cfgsdk init succ. start task succ
2022-01-21 10:51:00.458351[INFO]Comm_Svrd_Config: load framework config succ.
2022-01-21 10:51:00.459421[INFO]Comm_Svrd_Config: load framework config succ.
2022-01-21 10:51:00.687233[DEBUG][framework] ZEN_Reactor and ZEN_Epoll_Reactor initialized.
2022-01-21 10:51:00.674726[DEBUG][framework] ZEN_Reactor and ZEN_Epoll_Reactor initialized.
2022-01-21 10:51:00.837926[DEBUG][framework] ZEN_Reactor and ZEN_Epoll_Reactor initialized.
2022-01-21 10:51:00.857022[ERROR][zenlib] ZEN_Bus_MMAPPipe::initialize pipe[1] size[52428800] room[52428828] fail.
2022-01-21 10:51:00.857056[INFO][framework] Zerg_MMAP_BusPipe::instance()->init_by_cfg fail,ret = -1.
2022-01-21 10:51:00.857067[ERROR]application: init_instance fail. ret=-1
2022-01-21 10:51:01.684720[INFO][framework] MMAP Pipe init success,gogogo.The more you have,the more you want.
2022-01-21 10:51:01.675102[INFO][framework] MMAP Pipe init success,gogogo.The more you have,the more you want.
2022-01-21 10:51:02.281185[DEBUG]log instance finalize .
2022-01-21 10:51:02.281338[DEBUG]log instance finalize .
start game use LD_PRELOAD mode

_S_MOD_DB_RECONNECT_FOR_AUCTION_TAIWAN_
_S_MOD_USE_MYSQL_OPT_RECONNECT_
In LinuxService::processCommandLine
In ServiceInfo::setInfo
In ServiceInfo::setPIDFileName
Out ServiceInfo::setPIDFileName
Out ServiceInfo::setInfo
19�� signal ���� ����
Called readConfig
Called load_script
[!] Server environment(./cfg/auction_siroco.cfg) script loading : ./cfg/auction_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
ServiceName='./df_auction_r'
������ ������ ����~
ProcessCommandLine5
In LinuxService::checkConfigFile

In LinuxService::start
Run As Service

In make_dir
Out make_dir
Called readConfig
Called load_script
[!] Server environment(./cfg/auction_siroco.cfg) script loading : ./cfg/auction_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
pid file_path-pid/auction_siroco.pid
Out LinuxService::start
Out LinuxService::processCommandLine
In LinuxService::main
Called readConfig
Called load_script
[!] Server environment(./cfg/auction_siroco.cfg) script loading : ./cfg/auction_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
Called prepareRun
Start PortInfo~
Start Threads~
Start SessionPools~
Start Reactor~
Start EncryptTools~
_ServiceFactoryName-./df_auction_r
_ServiceConfigName-./cfg/auction_siroco.cfg
Called run
���� ���̺귯�� ���� ����...
2
2
TCPSendThread ��ü �Ϸ�...
TimerThread ��ü ����...
TimerThread ��ü �Ϸ�...
TCPThread ��ü ����...
TCPThread ��ü �Ϸ�...
NSLDBThread ��ü ����...
NSLDBThread ��ü �Ϸ�...
TCPDispatcher has been created...
InterDispatcher has been created...
DBDispatcher ��ü �Ϸ�...
������ ������ ���� ����
0�� workThread ���� ����
NSLDBThread 0 �� ���� ����-0x8ad00c8
Start up TCPSendThread-0x8acf838
TimerThread ���� ����-0x8acfdc8

=====================DB config check=========================
Game DB IP      : 127.0.0.1
Game DB PORT    : 3306
Game DB Account : game
Game DB Password: 20e35501e56fcedbe8b10c1f8bc3595be8b10c1f8bc3595b
Game DB Name    : taiwan_cain_2nd
Auction DB IP      : 127.0.0.1
Auction DB PORT    : 3306
Auction DB Account : game
Auction DB Password: 20e35501e56fcedbe8b10c1f8bc3595be8b10c1f8bc3595b
Auction DB Name    : taiwan_cain_auction_gold
=====================DB config check=========================

127.0.0.1 taiwan_cain_2nd SUCCESS
127.0.0.1 taiwan_cain_auction_gold SUCCESS
TCPThread ���� ����-0x8ad00a8
------------------------------------------
-		Server Frame Start Ver1.0       -
------------------------------------------
Start up TCPThread
Epoll init::6000
succeeded in binding TCP socket port #30803
***************Fail to exec(select count(*) from auction_history). process exits.************
_S_MOD_DB_RECONNECT_FOR_AUCTION_TAIWAN_
_S_MOD_USE_MYSQL_OPT_RECONNECT_
In LinuxService::processCommandLine
In ServiceInfo::setInfo
In ServiceInfo::setPIDFileName
Out ServiceInfo::setPIDFileName
Out ServiceInfo::setInfo
19�� signal ���� ����
Called readConfig
Called load_script
[!] Server environment(./cfg/point_siroco.cfg) script loading : ./cfg/point_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
ServiceName='df_point_r'
������ ������ ����~
ProcessCommandLine5
In LinuxService::checkConfigFile

In LinuxService::start
Run As Service

In make_dir
Out make_dir
Called readConfig
Called load_script
[!] Server environment(./cfg/point_siroco.cfg) script loading : ./cfg/point_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
pid file_path-pid/point_siroco.pid
Out LinuxService::start
Out LinuxService::processCommandLine
In LinuxService::main
Called readConfig
Called load_script
[!] Server environment(./cfg/point_siroco.cfg) script loading : ./cfg/point_siroco.cfg
[CServerXml] <event_str> Tag Skip!!
[CServerXml] <str> Tag Skip!!
OK readConfig()
Called prepareRun
Start PortInfo~
Start Threads~
Start SessionPools~
Start Reactor~
Start EncryptTools~
_ServiceFactoryName-df_point_r
_ServiceConfigName-./cfg/point_siroco.cfg
Called run
���� ���̺귯�� ���� ����...
2
2
TCPSendThread ��ü �Ϸ�...
TimerThread ��ü ����...
TimerThread ��ü �Ϸ�...
TCPThread ��ü ����...
TCPThread ��ü �Ϸ�...
NSLDBThread ��ü ����...
NSLDBThread ��ü �Ϸ�...
TCPDispatcher has been created...
InterDispatcher has been created...
DBDispatcher ��ü �Ϸ�...
������ ������ ���� ����
0�� workThread ���� ����
NSLDBThread 0 �� ���� ����-0x8da60c8
TimerThread ���� ����-0x8da5dc8
Start up TCPSendThread-0x8da5838

=====================DB config check=========================
Game DB IP      : 127.0.0.1
Game DB PORT    : 3306
Game DB Account : game
Game DB Password: 20e35501e56fcedbe8b10c1f8bc3595be8b10c1f8bc3595b
Game DB Name    : taiwan_cain_2nd
Auction DB IP      : 127.0.0.1
Auction DB PORT    : 3306
Auction DB Account : game
Auction DB Password: 20e35501e56fcedbe8b10c1f8bc3595be8b10c1f8bc3595b
Auction DB Name    : taiwan_cain_auction_cera
=====================DB config check=========================

127.0.0.1 taiwan_cain_2nd SUCCESS
127.0.0.1 taiwan_cain_auction_cera SUCCESS
TCPThread ���� ����-0x8da60a8
------------------------------------------
-		Server Frame Start Ver1.0       -
------------------------------------------
Start up TCPThread
Epoll init::6000
succeeded in binding TCP socket port #30603
***************Fail to exec(select count(*) from auction_history). process exits.************
**********************************************************
* +---   +-+ +  +----         DUNGEON & FIGHTER          *
* |   |  | | |  |                                        *
* |   |  | | |  +----                                    *
* |   |  | | |  |      Open Beta Test on 2005.08.10~     *
* +---   + +-+  |      Copyright(c) 2004,2005 Neople Co. *
**********************************************************
[!] Service Date (22-01-21/10:51)
[!] Check Args ...
m_Server_info.lls_key,: 3240332317335214766634233322344377569687
lls_key :: 3240332317335214766634233322344377569687
[!] Server key Check OK
	- cfg path: ./cfg/siroco11.cfg
	- pid path: ./pid/siroco11.pid
m_Server_info.lls_key,: 3240332317335214766634233322344377569687
lls_key :: 3240332317335214766634233322344377569687
[!] Server key Check OK
	- cfg path: ./cfg/siroco11.cfg
	- pid path: ./pid/siroco11.pid
[!] Check Args Success
[!] Init Log ...
	- log path: ./log/siroco11/
[!] Init Log Success

**********************************************************
* +---   +-+ +  +----         DUNGEON & FIGHTER          *
* |   |  | | |  |                                        *
* |   |  | | |  +----                                    *
* |   |  | | |  |      Open Beta Test on 2005.08.10~     *
* +---   + +-+  |      Copyright(c) 2004,2005 Neople Co. *
**********************************************************
[!] Service Date (22-01-21/10:51)
[!] Check Args ...
m_Server_info.lls_key,: 3240332317335214766634233322344377569687
lls_key :: 3240332317335214766634233322344377569687
[!] Server key Check OK
	- cfg path: ./cfg/siroco52.cfg
	- pid path: ./pid/siroco52.pid
[!] Check Args Success
[!] Init Log ...
	- log path: ./log/siroco52/
[!] Init Log Success
m_Server_info.lls_key,: 3240332317335214766634233322344377569687
lls_key :: 3240332317335214766634233322344377569687
[!] Server key Check OK
	- cfg path: ./cfg/siroco52.cfg
	- pid path: ./pid/siroco52.pid

**********************************************************
* +---   +-+ +  +----         DUNGEON & FIGHTER          *
* |   |  | | |  |                                        *
* |   |  | | |  +----                                    *
* |   |  | | |  |      Open Beta Test on 2005.08.10~     *
* +---   + +-+  |      Copyright(c) 2004,2005 Neople Co. *
**********************************************************
[!] Service Date (22-01-21/10:51)
Application Init() Success!
Application Load() Success!
---Time : 10, 52 ----
avgPing(0, 0, 0)
avgPing Res(0)
avgPing(0, 0, 0)
avgPing Res(0)
---Time : 10, 53 ----
avgPing(0, 0, 0)
avgPing Res(0)
avgPing(0, 0, 0)
avgPing Res(0)
---Time : 10, 54 ----
avgPing(0, 0, 0)
avgPing Res(0)

Init ChannelType Fail

[18:36:44] [!] Init ChannelType [18:36:44] [!] Init ChannelType Fail

基本照着instruction 做的,启动dnf server时卡在这里。请问可能的原因是什么呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.