跳到内容
Multigaming
Multigaming 100% 本地免费免登录

重启计划生成器

生成 cron、systemd 定时器或 Windows 任务(schtasks),并在每次重启前通过 RCON 提醒玩家。

最后更新:2026/10/9

100% 本地处理,数据保存在您的浏览器中。

文档
计划
玩家警告

逗号分隔,例如 30,15,5,1。

say: Minecraft, Rust, 7 Days to Die, Source — ServerChat: ARK — Broadcast: Palworld — servermsg: Project Zomboid — say -1: DayZ/Arma (BattlEye). Check the RCON command sheet.

RCON 客户端

Name or path of the executable (mcrcon, mcrcon.exe). Must accept -H, -P and the command as an argument.

重启

systemd unit or Windows service to restart.

Path where you will put restart-gameserver.sh / .ps1 (Windows: C:\gameserver).

restart-scheduler.txt
实时预览,自动保存在浏览器中。
# --- /opt/gameserver/restart-gameserver.sh (chmod +x) ---
#!/bin/bash
# Generated by games-tools.game-rank.com
# restart-gameserver.sh - warn players via RCON, save, then restart the service.
# Provide the RCON password via the MCRCON_PASS environment variable (never hard-code it here).
set -u
RCON_BIN="mcrcon"
send() { "$RCON_BIN" -H 127.0.0.1 -P 25575 "$1" >/dev/null 2>&1 || echo "RCON failed: $1"; }

send "say Server restart in 30 minute(s)"
sleep 900
send "say Server restart in 15 minute(s)"
sleep 600
send "say Server restart in 5 minute(s)"
sleep 240
send "say Server restart in 1 minute(s)"
sleep 60
send "save-all"
sleep 5
systemctl restart gameserver

# --- crontab of root (sudo crontab -e): systemctl restart needs privileges ---
# MCRCON_PASS=...   (define it at the top of the crontab or source a chmod 600 env file)
30 3 * * * /opt/gameserver/restart-gameserver.sh >> /var/log/gameserver-restart.log 2>&1
# The job starts at 03:30; the restart happens at 04:00 (warnings: 30 min, 15 min, 5 min, 1 min).
服务器安装指南还没有服务器?可在本地或 VPS / 独立服务器上安装,含端口与防火墙设置。

如何使用 重启计划生成器?

定期重启游戏服务器可释放内存并应用更新,但必须提前提醒玩家。该工具会生成警告并重启的脚本,以及适用于 Linux(cron 或 systemd)或 Windows 的计划。

  1. 选择平台(cron、systemd 或 Windows)、重启时间和日期。

  2. 填写重启前的警告分钟数、消息和游戏的聊天命令。

  3. 填写 RCON 客户端(主机、端口)、保存命令和服务名。

  4. 把每个代码块保存到注释所示的文件,设置 MCRCON_PASS,然后启用计划。

阅读完整文档 →

常见问题

Multigaming
Multigaming免登录
FiveM、Minecraft、Rust、DayZ、ARK、Valheim、Palworld、CS2、Arma 等的默认端口,并核对您已开放的端口列表。
端口网络打开
文档
Multigaming
Multigaming免登录
各游戏的管理命令(Minecraft、Rust、ARK、Palworld、DayZ、CS2 等),填入您的参数即可复制。无需联网。
RCON管理打开
文档
Multigaming
Multigaming免登录
根据人数槽位估算游戏服务器的 CPU、内存、磁盘和带宽,公式透明,假设可编辑。
容量规划成本打开
文档
Multigaming
Multigaming免登录
将端口列表转换为游戏服务器的 ufw、iptables、nftables 或 Windows netsh 规则。
防火墙安全打开
文档
Multigaming
Multigaming需要登录
对比两个配置文件(INI、CFG、JSON):逐行与逐键差异,全部在浏览器本地完成。
对比配置打开
文档
Multigaming
Multigaming需要登录
生成 bash 或 PowerShell 备份脚本(tar、7z、rsync/robocopy),含保留策略、停止服务和 cron 行。
备份脚本打开
文档