Skip to content

饥荒管理平台(DMP),满足一键开服、玩家管理、房间管理、数据统计、定时任务等功能 (Dont't Starve Together Management Platform, providing features such as one-click server launch, player management, room management, data statistics, and scheduled tasks)

License

Notifications You must be signed in to change notification settings

miracleEverywhere/dst-management-platform-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[中文文档] | [README]

DMP 饥荒管理平台

GitHub Release GitHub Downloads (all assets, all releases) GitHub commit activity GitHub License GitHub go.mod Go version


🍓 详细文档

快速开始、详细文档等请前往 https://miraclesses.top

⚠️ 2.×版本与1.×版本不兼容

1.×版本于2025年8月停止维护,模组搜索等功能无法使用,点击查看迁移文档

🍉 使用方法

建议使用 Ubuntu 24系统,低版本系统可能会出现GLIBC版本报错

# 执行以下命令,下载脚本(使用加速节点)需要使用jq命令
cd ~ && curl -o run.sh $(curl -s https://api.akams.cn/github | jq -r '.data[0].url')/https://github.com/miracleEverywhere/dst-management-platform-api/raw/refs/heads/master/run.sh && chmod +x run.sh
# 执行以下命令,下载脚本(不使用加速节点)
cd ~ && wget https://github.com/miracleEverywhere/dst-management-platform-api/raw/refs/heads/master/run.sh && chmod +x run.sh
# 自定义启动端口(8080改为你要用的端口),请手动修改run.sh文件或者
sed -i 's/^PORT=.*/PORT=8080/' run.sh
# 根据系统提示输入并回车
./run.sh

更新方法

cd ~ && ./run.sh

根据提示输入4

# root@VM-0-16-ubuntu:~# cd ~ && ./run.sh
饥荒管理平台(DMP)
--- https://github.com/miracleEverywhere/dst-management-platform-api ---
————————————————————————————————————————————————————————————
[0]: 下载并启动服务(Download and start the service)
————————————————————————————————————————————————————————————
[1]: 启动服务(Start the service)
[2]: 关闭服务(Stop the service)
[3]: 重启服务(Restart the service)
————————————————————————————————————————————————————————————
[4]: 更新管理平台(Update management platform)
[5]: 强制更新平台(Force update platform)
[6]: 更新启动脚本(Update startup script)
————————————————————————————————————————————————————————————
[7]: 设置虚拟内存(Setup swap)
[8]: 退出脚本(Exit script)
————————————————————————————————————————————————————————————
请输入选择(Please enter your selection) [0-8]:

如果下载了发行版(不建议,请使用run.sh脚本启动),则执行以下命令:

# -c 为开启日志,建议开启
nohup ./dmp -c > dmp.log 2>&1 &

默认启动端口为80,如果您想修改,则修改启动命令:

# 修改端口为8888
nohup ./dmp -c -l 8888 > dmp.log 2>&1 &

也可以指定数据库文件的存储目录

# 开启控制台输出,监听8899端口,DstMP.sdb的存储位置为 ./config/DstMP.sdb
nohup ./dmp -c -l 8899 -s ./config > dmp.log 2>&1 &

docker部署方式
首先在package页面获取docker镜像tag
建议映射config、dst和.klei目录

# 绑定80端口 映射到/app目录下
docker run -itd --name dmp -p 80:80 \
-v /app/config:/root/config \
-v /app/dst:/root/dst \
-v /app/.klei:/root/.klei \
-v /app/dmp_files:/root/dmp_files \
-v /app/steamcmd:/root/steamcmd \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
ghcr.io/miracleeverywhere/dst-management-platform-api:latest
# 绑定8000端口 映射到/app目录下
docker run -itd --name dmp -p 8000:80 \
-v /app/config:/root/config \
-v /app/dst:/root/dst \
-v /app/.klei:/root/.klei \
-v /app/dmp_files:/root/dmp_files \
-v /app/steamcmd:/root/steamcmd \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
ghcr.io/miracleeverywhere/dst-management-platform-api:latest
# 使用host网络,并绑定8080端口
docker run -itd --name dmp --net=host \
-e DMP_PORT=8080 \
-v /app/config:/root/config \
-v /app/dst:/root/dst \
-v /app/.klei:/root/.klei \
-v /app/dmp_files:/root/dmp_files \
-v /app/steamcmd:/root/steamcmd \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
ghcr.io/miracleeverywhere/dst-management-platform-api:latest

docker更新
停止旧版本容器,拉取新版本镜像,使用上述启动命令启动即可
如果有映射config、dst和.klei目录,则无需重复安装游戏等操作

MacOS安装(测试版,不提供支持)

只支持M系列CPU的Mac

cd ~ && wget https://github.com/miracleEverywhere/dst-management-platform-api/raw/refs/heads/master/run.sh && chmod +x run_macos.sh
# 请输入需要执行的操作(Please enter the operation to be performed): 
# [0]: 下载并启动服务(Download and start the service) 
# [1]: 启动服务(Start the service) 
# [2]: 关闭服务(Stop the service) 
# [3]: 重启服务(Restart the service) 
# [4]: 更新服务(Update the service) 

选择0下载并启动,启动完成后运行manual_install.sh脚本安装游戏,无法在页面进行安装

./manual_install.sh

注意:MacOS由于系统原因,模组配置暂不可用,需要点击设置-模组-添加模组页面的导出按钮,点击后会在桌面生成名为dmp_exported_mod的目录,用户需使用 访达 将改目录中的模组复制到~/dst/dontstarve_dedicated_server_nullrenderer/Contents/mods目录下。更新模组需要在设置-模组-添加模组页面删除对应要更新的模组,然后重新下载该模组,执行导出和复制操作后,重启游戏服务器。


🍒 平台截图

zh-home

zh-room

zh-mod

zh-backup

zh-logs

zh-clusters


💖 致谢

本项目前端页面基于koi-ui二次开发,感谢开源 @KoiKite

感谢加速站点github.akams.cngithub.acmsz.top

About

饥荒管理平台(DMP),满足一键开服、玩家管理、房间管理、数据统计、定时任务等功能 (Dont't Starve Together Management Platform, providing features such as one-click server launch, player management, room management, data statistics, and scheduled tasks)

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 5