本文只讲 Linux 系统开服。用 Windows 的朋友请转:《V Rising开服保姆级教程(Windows版)》→ https://z0w.cn/wiki/v-rising-server-guide-windows.html
Linux 系统准备见:《Linux 云服务器开服通用前置教程》→ https://z0w.cn/wiki/linux-gameserver-setup.html
一、先说清楚:Linux 没有原生服务端
V Rising 的专用服务端(AppID 1829350)只有 Windows 二进制。Linux 上跑必须走 Wine,这不是 Stunlock Studios 官方支持的路径,但社区用得挺稳。
不想折腾就选 Windows 系统镜像。
二、开服前必读:三个坑
坑 1:SteamCMD 必须强制 Windows 平台
不加 @sSteamCmdForcePlatformType windows,会报 "no such app" 或下载到错误平台的文件。
坑 2:配置文件要放对位置ServerHostSettings.json 和 ServerGameSettings.json 要放在 -persistentDataPath 指向的目录下的 Settings 文件夹里,否则更新会被覆盖。
坑 3:无头服务器需要虚拟显示
Wine 跑服务端需要 X display,用 xvfb-run 包装。
三、配置与端口规划
| 项目 | 要求 |
|---|---|
| 系统 | Ubuntu 22.04 / Debian 12 |
| CPU | 4 核 |
| 内存 | 4G 起,20-40 人建议 8-16G |
| 硬盘 | 10G SSD |
| 额外 | Wine(含 32 位)+ xvfb |
端口:UDP + TCP 9876(游戏)、9877(查询)
四、安装 Wine 与依赖
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y wine wine32 wine64 winetricks xvfb screen
wine --version装运行库(V Rising 同时需要 32 位和 64 位包):
winetricks -q dotnet48 vcrun2019五、SteamCMD 下载服务端
sudo useradd -m -s /bin/bash vrising
sudo passwd vrising
sudo su - vrising
mkdir -p ~/steamcmd && cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
./steamcmd.sh +quit
./steamcmd.sh +@sSteamCmdForcePlatformType windows \
+force_install_dir /home/vrising/server \
+login anonymous \
+app_update 1829350 validate \
+quit注意:
- 变量名开头是两个 s
- 必须放在
+force_install_dir之前 - 放错顺序 = 无效
六、首次启动与配置
cd /home/vrising/server
mkdir -p save-data/Settings logs
WINEDEBUG=-all xvfb-run -a wine VRisingServer.exe \
-persistentDataPath ./save-data \
-saveName "world1" \
-logFile "./logs/VRisingServer.log"启动后配置文件生成在:
/home/vrising/server/VRisingServer_Data/StreamingAssets/Settings/复制到 save-data 目录(关键):
cp /home/vrising/server/VRisingServer_Data/StreamingAssets/Settings/*.json \
/home/vrising/server/save-data/Settings/然后编辑:
nano /home/vrising/server/save-data/Settings/ServerHostSettings.json{
"Name": "我的夜族服务器",
"Description": "和朋友一起建城堡",
"Port": 9876,
"QueryPort": 9877,
"MaxConnectedUsers": 20,
"MaxConnectedAdmins": 2,
"SaveName": "world1",
"Password": "进服密码",
"ListOnMasterServer": true,
"AutoSaveCount": 30,
"AutoSaveInterval": 300,
"GameSettingsPreset": "StandardPvP",
"Rcon": {
"Password": "管理员密码",
"Enabled": false,
"Port": 25575
}
}ServerGameSettings.json 管游戏内规则(难度、昼夜、资源倍率、PVP 规则等)。
七、启动脚本
/home/vrising/start.sh:
#!/bin/bash
cd /home/vrising/server
export WINEDEBUG=-all
exec xvfb-run -a wine VRisingServer.exe \
-persistentDataPath ./save-data \
-saveName "world1" \
-logFile "./logs/VRisingServer.log"chmod +x /home/vrising/start.sh八、放行端口
sudo ufw allow 9876/udp
sudo ufw allow 9876/tcp
sudo ufw allow 9877/udp
sudo ufw allow 9877/tcp
sudo ufw reloadNAT 型服务器还要在服务商控制台映射。详见:《NAT 端口映射完全指南》→ https://z0w.cn/wiki/nat-port-forwarding-guide.html
九、systemd 常驻
[Unit]
Description=V Rising Dedicated Server
After=network-online.target
[Service]
Type=simple
User=vrising
WorkingDirectory=/home/vrising/server
Environment="WINEDEBUG=-all"
ExecStart=/usr/bin/xvfb-run -a /usr/bin/wine /home/vrising/server/VRisingServer.exe -persistentDataPath ./save-data -saveName world1 -logFile ./logs/VRisingServer.log
Restart=on-failure
RestartSec=20
LimitNOFILE=65536
[Install]
WantedBy=multi-user.targetsudo systemctl daemon-reload
sudo systemctl enable --now vrising
sudo journalctl -u vrising -f十、客户端进服
游戏内 → 线上游戏 → 直接连接 → 输入 外网IP:外网端口。
十一、常见问题
Q:SteamCMD 报 "no such app"?@sSteamCmdForcePlatformType windows 没加或位置错了,必须在 force_install_dir 之前。
Q:Wine 启动报 .NET 错误?winetricks dotnet48 vcrun2019;或用最新版 Wine / GE-Proton。
Q:报 "Display not available" / 无法初始化渲染?
要 xvfb-run -a 包装。
Q:服务端起来了但列表里看不到?
9877 的 TCP 和 UDP 是否都放行;ListOnMasterServer 是否 true。
Q:玩家提示 "Server not responding"?
查询端口 9877 被挡。
Q:更新后配置丢失?
配置没放到 save-data/Settings/,回到第六节复制。
Q:随机崩溃?
看 ~/.wine/dosdevices/c:/users/... 下的 Wine 日志,通常是运行库缺失。
十二、总结
| 项目 | 值 |
|---|---|
| AppID | 1829350 |
| 游戏端口 | UDP + TCP 9876 |
| 查询端口 | UDP + TCP 9877 |
| RCON | TCP 25575 |
| Linux 支持 | ❌ 需 Wine |
| SteamCMD 关键参数 | +@sSteamCmdForcePlatformType windows |
| 配置目录 | save-data/Settings/ |
| 启动方式 | xvfb-run wine VRisingServer.exe |
📌 想省事直接选 Windows 镜像,官方路径最稳。
我们家的云服务器 Windows / Linux 镜像自由选择,控制台自助映射端口,NAT 型价格更省 → 财富云计算 https://z0w.cn
延伸阅读
- 网站环境怎么选:LNMP 手动 / 宝塔面板 / Docker / 云开发
- 问卷表单系统搭建:SurveyKing / Formbricks,数据自己收
- 图床搭建:Lsky Pro / Lychee,自托管图片托管方案
- 邮件列表搭建:listmonk 自托管 Newsletter,把读者握在自己手里
- 文档站点搭建:MkDocs / VuePress / Docsify,产品文档与技术手册方案
- RSS 阅读器搭建:FreshRSS 自托管,把信息流拿回自己手里
- 短链接服务搭建:Shlink 自托管,链接数据自己掌握
- 网站状态监控页搭建:Uptime Kuma,服务器挂了第一时间知道

[...]这是本站长期维护的游戏配置与教程总索引。想开服,先在这页搞清楚两件事:你的游戏要吃多少配置、你的系统该看哪篇教程。建议收藏——换游戏、加 MOD、人数变多时,回来核对一遍能省掉大部分"卡爆了"和"连不上"。搭配阅读:还没买服务器?先看购前决策索引(预算分级 / NAT vs 独立 IP / 避坑清单);端口映射看不懂?先看端口速查表(40+ 游戏端口协议一页查清)。一、全游戏配置需求速查表下表按"[...]
2026-10-18 回复