饥荒专用服务器搭建
yuuki Lv5

由于种种原因所以尝试去搭建一个饥荒联机(以下简称DST)服务器。

安装饥荒

如果你是Windows就需要安装steam然后下载饥荒。如果你是Linux就需要安装steamCMD然后从steamCMD中

Linux命令

1
2
3
4
5
6
7
8
9
10
11
$ cd /opt
$ sudo mkdir steamcmd && sudo chown `whoami`:`whoami` steamcmd && cd steamcmd # 或者任何你想安装的地方
$ wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
$ tar -xvzf steamcmd_linux.tar.gz

// 下载服务器本体
$ ./steamcmd.sh # 如果你是通过包管理器安装的,直接输入 steam
> force_install_dir <你想安装服务器本体的位置>
> login anonymous
> app_update 343050 validate
> quit

更新饥荒

1
2
/home/steam/steamCMD/steamcmd.sh +login anonymous +app_update 343050 validate +quit
cat /home/steam/Steam/steamapps/common/Don\'t\ Starve\ Together\ Dedicated\ Server/version.txt
启动洞穴
1
cd /home/steam/Steam/steamapps/common/Don\'t\ Starve\ Together\ Dedicated\ Server/bin64 && ./dontstarve_dedicated_server_nullrenderer_x64 -shard Caves

启动世界

1
cd /home/steam/Steam/steamapps/common/Don\'t\ Starve\ Together\ Dedicated\ Server/bin64 && ./dontstarve_dedicated_server_nullrenderer_x64
 评论