{"id":82297,"date":"2026-07-25T07:43:42","date_gmt":"2026-07-24T23:43:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/82297.html"},"modified":"2026-07-25T07:43:42","modified_gmt":"2026-07-24T23:43:42","slug":"%e5%9c%a8%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e6%89%8b%e6%8a%8a%e6%89%8b%e9%83%a8%e7%bd%b2%e3%80%8a%e9%a5%a5%e8%8d%92%e8%81%94%e6%9c%ba%e7%89%88%e3%80%8bdst-%e4%b8%93%e7%94%a8%e6%9c%8d","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/82297.html","title":{"rendered":"\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u624b\u628a\u624b\u90e8\u7f72\u300a\u9965\u8352\u8054\u673a\u7248\u300b(DST) \u4e13\u7528\u670d\u52a1\u5668\uff08Ubuntu 22.04 \/ SteamCMD\uff09"},"content":{"rendered":"<h2><\/h2>\n<p>\u9002\u7528\u4eba\u7fa4&#xff1a;\u96f6\u57fa\u7840\u3001\u53ea\u4f1a\u7528 SSH \u8fde\u63a5\u670d\u52a1\u5668\u7684\u4eba\u3002<\/p>\n<p>\u76ee\u6807&#xff1a;\u5728\u4e00\u53f0\u4e91\u670d\u52a1\u5668\u4e0a\u642d\u5efa Don&#039;t Starve Together&#xff08;DST&#xff0c;\u9965\u8352\u8054\u673a\u7248&#xff09; \u7684 Dedicated Server&#xff08;\u4e13\u7528\u670d\u52a1\u5668&#xff09;&#xff0c;\u4f60\u548c\u670b\u53cb\u7528 Steam \u6b63\u7248\u5728\u6e38\u620f\u91cc\u641c\u7d22\u5e76\u52a0\u5165\u3002<\/p>\n<hr \/>\n<h3>1. \u4f60\u9700\u8981\u51c6\u5907\u4ec0\u4e48<\/h3>\n<ul>\n<li>\n<p>\u4e00\u53f0\u4e91\u670d\u52a1\u5668&#xff08;\u5efa\u8bae Ubuntu 22.04 x64&#xff0c;2 \u6838 2G \u6216\u4ee5\u4e0a\u66f4\u7a33&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u80fd SSH \u767b\u5f55\u670d\u52a1\u5668&#xff08;Xshell \/ Termius \/ Windows Terminal \/ macOS \u7ec8\u7aef\u5747\u53ef&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u4f60\u672c\u5730\u7535\u8111\u5b89\u88c5 Steam \u7248\u300a\u9965\u8352\u8054\u673a\u7248\u300b<\/p>\n<\/li>\n<li>\n<p>\u4e00\u4e2a Klei \u8d26\u53f7&#xff08;\u7528\u4e8e\u751f\u6210 Cluster Token&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\n<p>DST &#061; Don\u2019t Starve Together&#xff0c;\u4e2d\u6587\u5e38\u53eb\u201c\u9965\u8352\u8054\u673a\u7248\u201d\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e13\u7528\u670d\u52a1\u5668\u4e0d\u9700\u8981\u56fe\u5f62\u754c\u9762&#xff0c;\u5168\u7a0b SSH \u64cd\u4f5c\u5373\u53ef\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>2. \u670d\u52a1\u5668\u57fa\u7840\u73af\u5883\u5b89\u88c5<\/h3>\n<h4>2.1 \u66f4\u65b0\u7cfb\u7edf\u5e76\u5b89\u88c5\u4f9d\u8d56<\/h4>\n<p>apt update &amp;&amp; apt -y upgrade<br \/>\napt -y install wget tar screen unzip lib32gcc-s1 lib32stdc&#043;&#043;6<\/p>\n<p>\u89e3\u91ca&#xff1a;<\/p>\n<ul>\n<li>\n<p>SteamCMD \u662f 32 \u4f4d\u7ec4\u4ef6&#xff0c;\u5e38\u89c1\u9700\u8981 lib32gcc-s1\u3001lib32stdc&#043;&#043;6\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>3. \u5b89\u88c5 SteamCMD \u5e76\u4e0b\u8f7d DST \u4e13\u7528\u670d\u52a1\u5668<\/h3>\n<h4>3.1 \u5b89\u88c5 SteamCMD<\/h4>\n<p>mkdir -p \/root\/steamcmd<br \/>\ncd \/root\/steamcmd<br \/>\nwget &#034;https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz&#034;<br \/>\ntar -xvzf steamcmd_linux.tar.gz<\/p>\n<h4>3.2 \u7528 SteamCMD \u4e0b\u8f7d DST Dedicated Server<\/h4>\n<p>DST \u4e13\u7528\u670d\u52a1\u5668\u7684 Steam AppID \u901a\u5e38\u662f 343050\u3002<\/p>\n<p>mkdir -p \/root\/dst_server<br \/>\ncd \/root\/steamcmd<br \/>\n.\/steamcmd.sh<\/p>\n<p>\u8fdb\u5165 SteamCMD \u4ea4\u4e92\u754c\u9762\u540e\u8f93\u5165&#xff1a;<\/p>\n<p>force_install_dir \/root\/dst_server<br \/>\nlogin anonymous<br \/>\napp_update 343050 validate<br \/>\nquit<\/p>\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e&#xff0c;\u670d\u52a1\u5668\u6587\u4ef6\u4f1a\u5728&#xff1a;<\/p>\n<ul>\n<li>\n<p>\/root\/dst_server\/bin64\/&#xff08;Ubuntu 22.04 \u5e38\u89c1\u662f x64&#xff09;<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>4. \u521b\u5efa\u4e16\u754c&#xff08;Cluster&#xff09;\u914d\u7f6e<\/h3>\n<p>DST \u7684\u4e13\u7528\u670d\u52a1\u5668\u914d\u7f6e\u4f4d\u4e8e Klei \u76ee\u5f55\u7ed3\u6784\u4e2d&#xff1a;<\/p>\n<ul>\n<li>\n<p>\/root\/.klei\/DoNotStarveTogether\/<\/p>\n<\/li>\n<\/ul>\n<p>\u4e00\u4e2a\u4e16\u754c&#xff08;\u96c6\u7fa4&#xff09;\u5c31\u662f\u4e00\u4e2a\u6587\u4ef6\u5939&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<ul>\n<li>\n<p>\/root\/.klei\/DoNotStarveTogether\/MyDediServer\/<\/p>\n<\/li>\n<\/ul>\n<p>\u91cc\u9762\u901a\u5e38\u5305\u542b&#xff1a;<\/p>\n<ul>\n<li>\n<p>cluster.ini&#xff1a;\u4e16\u754c\u603b\u4f53\u914d\u7f6e&#xff08;\u540d\u79f0\u3001\u5bc6\u7801\u3001\u4eba\u6570\u3001\u6a21\u5f0f\u7b49&#xff09;<\/p>\n<\/li>\n<li>\n<p>cluster_token.txt&#xff1a;Klei \u670d\u52a1\u5668\u7968\u636e&#xff08;\u5fc5\u987b\u6709&#xff09;<\/p>\n<\/li>\n<li>\n<p>Master\/&#xff1a;\u5730\u9762\u4e16\u754c\u914d\u7f6e&#xff08;\u4e3b\u4e16\u754c&#xff09;<\/p>\n<\/li>\n<li>\n<p>Caves\/&#xff1a;\u6d1e\u7a74\u4e16\u754c\u914d\u7f6e&#xff08;\u53ef\u9009&#xff0c;\u4f46\u591a\u6570\u73a9\u5bb6\u9700\u8981&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h4>4.1 \u83b7\u53d6 Cluster Token&#xff08;\u5fc5\u987b&#xff09;<\/h4>\n<p>\u767b\u5f55 Klei \u5b98\u7f51\u8d26\u53f7\u7ba1\u7406\u9875\u9762&#xff0c;\u751f\u6210\u7528\u4e8e Dedicated Server \u7684 Cluster Token\u3002<\/p>\n<ul>\n<li>\n<p>\u628a token \u5199\u5165 cluster_token.txt<\/p>\n<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>mkdir -p \/root\/.klei\/DoNotStarveTogether\/MyDediServer<br \/>\nnano \/root\/.klei\/DoNotStarveTogether\/MyDediServer\/cluster_token.txt<\/p>\n<p>\u628a token \u7c98\u8d34\u8fdb\u53bb&#xff0c;\u4fdd\u5b58\u9000\u51fa\u3002<\/p>\n<p>\u63d0\u793a&#xff1a;Token \u76f8\u5f53\u4e8e\u670d\u52a1\u5668\u51ed\u8bc1&#xff0c;\u4e0d\u8981\u516c\u5f00\u3002<\/p>\n<hr \/>\n<h3>5. \u7f16\u5199\u914d\u7f6e\u6587\u4ef6&#xff08;\u5173\u952e&#xff09;<\/h3>\n<p>\u4e0b\u9762\u7ed9\u51fa\u4e00\u5957\u6700\u5e38\u7528\u3001\u6700\u5bb9\u6613\u6210\u529f\u7684\u6a21\u677f&#xff08;\u5730\u9762 &#043; \u6d1e\u7a74&#xff09;\u3002\u4f60\u53ea\u8981\u7167\u6284\u5e76\u6309\u9700\u6539\u540d\u5b57\/\u5bc6\u7801\u5373\u53ef\u3002<\/p>\n<h4>5.1 cluster.ini&#xff08;\u4e16\u754c\u603b\u914d\u7f6e&#xff09;<\/h4>\n<p>\u8def\u5f84&#xff1a;<\/p>\n<ul>\n<li>\n<p>\/root\/.klei\/DoNotStarveTogether\/MyDediServer\/cluster.ini<\/p>\n<\/li>\n<\/ul>\n<p>\u5185\u5bb9\u793a\u4f8b&#xff1a;<\/p>\n<p>[GAMEPLAY]<br \/>\ngame_mode &#061; survival<br \/>\nmax_players &#061; 6<br \/>\npvp &#061; false<br \/>\npause_when_empty &#061; false<\/p>\n<p>[NETWORK]<br \/>\ncluster_name &#061; My DST Server<br \/>\ncluster_description &#061; A dedicated server for friends<br \/>\ncluster_password &#061; 123456<\/p>\n<p>[MISC]<br \/>\nconsole_enabled &#061; true<\/p>\n<p>[SHARD]<br \/>\nshard_enabled &#061; true<br \/>\nbind_ip &#061; 127.0.0.1<br \/>\nmaster_ip &#061; 127.0.0.1<br \/>\nmaster_port &#061; 10889<br \/>\ncluster_key &#061; supersecretkey<\/p>\n<p>\u91cd\u8981\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\n<p>pause_when_empty &#061; false \u5efa\u8bae\u5173\u95ed\u7a7a\u670d\u6682\u505c&#xff0c;\u907f\u514d\u51fa\u73b0\u201c\u770b\u5f97\u5230\u670d\u52a1\u5668\u4f46\u8fde\u63a5\u5f02\u5e38\u201d\u7684\u60c5\u51b5\u3002<\/p>\n<\/li>\n<li>\n<p>cluster_password \u53ef\u4e3a\u7a7a&#xff08;\u65e0\u5bc6\u7801&#xff09;&#xff0c;\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u5bc6\u7801\u3002<\/p>\n<\/li>\n<li>\n<p>bind_ip\/master_ip\/master_port\/cluster_key \u662f\u5730\u9762\u4e0e\u6d1e\u7a74\u4e92\u8054\u7684\u5173\u952e\u53c2\u6570\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>5.2 Master\/server.ini&#xff08;\u5730\u9762&#xff09;<\/h4>\n<p>\u8def\u5f84&#xff1a;<\/p>\n<ul>\n<li>\n<p>\/root\/.klei\/DoNotStarveTogether\/MyDediServer\/Master\/server.ini<\/p>\n<\/li>\n<\/ul>\n<p>\u5185\u5bb9\u793a\u4f8b&#xff1a;<\/p>\n<p>[NETWORK]<br \/>\nserver_port &#061; 11000<\/p>\n<p>[SHARD]<br \/>\nis_master &#061; true<\/p>\n<p>[STEAM]<br \/>\nmaster_server_port &#061; 27018<br \/>\nauthentication_port &#061; 8768<\/p>\n<p>[ACCOUNT]<br \/>\nencode_user_path &#061; true<\/p>\n<h4>5.3 Caves\/server.ini&#xff08;\u6d1e\u7a74&#xff09;<\/h4>\n<p>\u8def\u5f84&#xff1a;<\/p>\n<ul>\n<li>\n<p>\/root\/.klei\/DoNotStarveTogether\/MyDediServer\/Caves\/server.ini<\/p>\n<\/li>\n<\/ul>\n<p>\u5185\u5bb9\u793a\u4f8b&#xff1a;<\/p>\n<p>[NETWORK]<br \/>\nserver_port &#061; 11001<\/p>\n<p>[SHARD]<br \/>\nis_master &#061; false<br \/>\nname &#061; Caves<\/p>\n<p>[STEAM]<br \/>\nmaster_server_port &#061; 27019<br \/>\nauthentication_port &#061; 8769<\/p>\n<p>[ACCOUNT]<br \/>\nencode_user_path &#061; true<\/p>\n<p>\u63d0\u793a&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7aef\u53e3\u53ef\u4ee5\u6362&#xff0c;\u4f46\u4e0d\u8981\u51b2\u7a81\u3002<\/p>\n<\/li>\n<li>\n<p>\u6d1e\u7a74\u4e0e\u5730\u9762\u5fc5\u987b\u6210\u5bf9\u914d\u7f6e&#xff0c;\u5e76\u4e14 cluster.ini \u7684 shard \u914d\u7f6e\u5fc5\u987b\u542f\u7528\u3002<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>6. \u542f\u52a8\u811a\u672c&#xff1a;\u4e00\u952e\u542f\u52a8\u5730\u9762 &#043; \u6d1e\u7a74<\/h3>\n<p>\u521b\u5efa\u542f\u52a8\u811a\u672c \/root\/run_dst.sh&#xff1a;<\/p>\n<p>cat &gt; \/root\/run_dst.sh &lt;&lt;&#039;EOF&#039;<br \/>\n#!\/usr\/bin\/env bash<br \/>\nset -e<\/p>\n<p>INSTALL_DIR&#061;&#034;\/root\/dst_server&#034;<br \/>\nCLUSTER&#061;&#034;MyDediServer&#034;<\/p>\n<p># \u517c\u5bb9\u4e0d\u540c\u76ee\u5f55&#xff08;Ubuntu 22.04 \u5e38\u89c1 DST \u5728 bin64&#xff09;<br \/>\nif [ -f &#034;$INSTALL_DIR\/bin64\/dontstarve_dedicated_server_nullrenderer_x64&#034; ]; then<br \/>\n  BIN&#061;&#034;$INSTALL_DIR\/bin64\/dontstarve_dedicated_server_nullrenderer_x64&#034;<br \/>\n  BINDIR&#061;&#034;$INSTALL_DIR\/bin64&#034;<br \/>\nelse<br \/>\n  BIN&#061;&#034;$INSTALL_DIR\/bin\/dontstarve_dedicated_server_nullrenderer&#034;<br \/>\n  BINDIR&#061;&#034;$INSTALL_DIR\/bin&#034;<br \/>\nfi<\/p>\n<p>cd &#034;$BINDIR&#034;<\/p>\n<p># \u540e\u53f0\u8fd0\u884c&#xff0c;\u65e5\u5fd7\u8f93\u51fa\u5230 \/root\/master.log \u548c \/root\/caves.log<br \/>\nnohup &#034;$BIN&#034; -cluster &#034;$CLUSTER&#034; -shard Master &gt; \/root\/master.log 2&gt;&amp;1 &amp;<br \/>\nnohup &#034;$BIN&#034; -cluster &#034;$CLUSTER&#034; -shard Caves  &gt; \/root\/caves.log 2&gt;&amp;1 &amp;<\/p>\n<p>echo &#034;\u542f\u52a8\u5b8c\u6210&#xff1a;\/root\/master.log \u548c \/root\/caves.log&#034;<br \/>\nEOF<\/p>\n<p>chmod &#043;x \/root\/run_dst.sh<\/p>\n<p>\u542f\u52a8&#xff1a;<\/p>\n<p>\/root\/run_dst.sh<\/p>\n<p>\u67e5\u770b\u8fdb\u7a0b&#xff1a;<\/p>\n<p>ps -ef | grep dontstarve_dedicated_server_nullrenderer | grep -v grep<\/p>\n<p>\u67e5\u770b\u65e5\u5fd7&#xff1a;<\/p>\n<p>tail -n 80 \/root\/master.log<br \/>\ntail -n 80 \/root\/caves.log<\/p>\n<p>\u505c\u6b62\u670d\u52a1\u5668&#xff1a;<\/p>\n<p>pkill -9 -f dontstarve_dedicated_server_nullrenderer || true<\/p>\n<hr \/>\n<h3>7. \u9632\u706b\u5899\u4e0e\u7aef\u53e3\u653e\u884c&#xff08;\u975e\u5e38\u5173\u952e&#xff09;<\/h3>\n<p>\u4f60\u9700\u8981\u540c\u65f6\u68c0\u67e5\u4e24\u5c42&#xff1a;<\/p>\n<li>\n<p>\u670d\u52a1\u5668\u7cfb\u7edf\u9632\u706b\u5899&#xff08;UFW&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u4e91\u5382\u5546\u63a7\u5236\u53f0\u7684\u201c\u5b89\u5168\u7ec4\/\u9632\u706b\u5899\/\u5165\u7ad9\u89c4\u5219\u201d<\/p>\n<\/li>\n<h4>7.1 UFW \u653e\u884c\u7aef\u53e3&#xff08;\u5efa\u8bae TCP &#043; UDP \u90fd\u653e&#xff09;<\/h4>\n<p>ufw allow 11000\/udp<br \/>\nufw allow 11001\/udp<br \/>\nufw allow 11000\/tcp<br \/>\nufw allow 11001\/tcp<\/p>\n<p>ufw allow 27018\/udp<br \/>\nufw allow 27019\/udp<br \/>\nufw allow 27018\/tcp<br \/>\nufw allow 27019\/tcp<\/p>\n<p>ufw allow 8768\/udp<br \/>\nufw allow 8769\/udp<br \/>\nufw allow 8768\/tcp<br \/>\nufw allow 8769\/tcp<\/p>\n<p>ufw reload<br \/>\nufw status<\/p>\n<h4>7.2 \u4e91\u5b89\u5168\u7ec4&#xff08;\u5fc5\u987b\u4e5f\u653e\u884c&#xff09;<\/h4>\n<p>\u5728\u4e91\u5382\u5546\u63a7\u5236\u53f0\u91cc&#xff0c;\u628a\u4ee5\u4e0b\u7aef\u53e3\u5165\u7ad9\u653e\u884c&#xff1a;<\/p>\n<ul>\n<li>\n<p>11000&#xff08;\u5730\u9762&#xff09;<\/p>\n<\/li>\n<li>\n<p>11001&#xff08;\u6d1e\u7a74&#xff09;<\/p>\n<\/li>\n<li>\n<p>27018\u300127019&#xff08;Steam \u670d\u52a1\u5668\u7aef\u53e3&#xff09;<\/p>\n<\/li>\n<li>\n<p>8768\u30018769&#xff08;Steam \u8ba4\u8bc1\u7aef\u53e3&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u534f\u8bae\u5efa\u8bae&#xff1a;TCP &#043; UDP \u90fd\u653e\u884c&#xff08;\u6700\u7701\u5fc3&#xff09;\u3002<\/p>\n<hr \/>\n<h3>8. \u81ea\u68c0&#xff1a;\u786e\u8ba4\u7aef\u53e3\u6b63\u5728\u76d1\u542c<\/h3>\n<h4>8.1 \u68c0\u67e5 UDP\/TCP \u76d1\u542c<\/h4>\n<p>echo &#034;&#8212;- UDP &#8212;-&#034;<br \/>\nss -lunp | egrep &#039;11000|11001|27018|27019|8768|8769|10889&#039; || true<\/p>\n<p>echo &#034;&#8212;- TCP &#8212;-&#034;<br \/>\nss -lntp | egrep &#039;11000|11001|27018|27019|8768|8769|10889&#039; || true<\/p>\n<p>\u6b63\u5e38\u60c5\u51b5\u4e0b\u4f60\u4f1a\u770b\u5230&#xff1a;<\/p>\n<ul>\n<li>\n<p>11000\/11001 \u5728\u76d1\u542c&#xff08;\u5bf9\u5916&#xff09;<\/p>\n<\/li>\n<li>\n<p>27018\/27019 \u5728\u76d1\u542c&#xff08;\u5bf9\u5916&#xff09;<\/p>\n<\/li>\n<li>\n<p>8768\/8769 \u53ef\u80fd\u4f1a\u76d1\u542c&#xff08;\u6839\u636e\u7248\u672c\/\u5e73\u53f0\u5b9e\u73b0\u4e0d\u540c&#xff0c;\u4f46\u653e\u884c\u4e0d\u5403\u4e8f&#xff09;<\/p>\n<\/li>\n<li>\n<p>10889 \u901a\u5e38\u53ea\u4f1a\u5728 127.0.0.1&#xff08;\u5730\u9762\u4e0e\u6d1e\u7a74\u5185\u90e8\u901a\u4fe1&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h4>8.2 \u65e5\u5fd7\u91cc\u5e94\u8be5\u51fa\u73b0\u7684\u5173\u952e\u5b57<\/h4>\n<p>Master.log \u5e38\u89c1&#xff1a;<\/p>\n<ul>\n<li>\n<p>Online Server Started on port: 11000<\/p>\n<\/li>\n<li>\n<p>Server registered via geo DNS &#8230;<\/p>\n<\/li>\n<\/ul>\n<p>Caves.log \u5e38\u89c1&#xff1a;<\/p>\n<ul>\n<li>\n<p>Online Server Started on port: 11001<\/p>\n<\/li>\n<li>\n<p>secondary shard is now ready&#xff08;\u6d1e\u7a74\u5c31\u7eea&#xff09;<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>9. \u6e38\u620f\u91cc\u52a0\u5165\u670d\u52a1\u5668<\/h3>\n<li>\n<p>\u6253\u5f00 Steam \u7248 DST<\/p>\n<\/li>\n<li>\n<p>\u8fdb\u5165\u201c\u6d4f\u89c8\u670d\u52a1\u5668\/\u670d\u52a1\u5668\u5217\u8868\u201d<\/p>\n<\/li>\n<li>\n<p>\u641c\u7d22\u4f60\u5728 cluster.ini \u91cc\u5199\u7684 cluster_name<\/p>\n<\/li>\n<li>\n<p>\u8f93\u5165\u5bc6\u7801&#xff08;\u5982\u679c\u4f60\u8bbe\u7f6e\u4e86 cluster_password&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u52a0\u5165\u540e&#xff0c;\u4f60\u7684\u670b\u53cb\u4e5f\u53ef\u4ee5\u540c\u6837\u65b9\u5f0f\u52a0\u5165<\/p>\n<\/li>\n<hr \/>\n<h3>10. \u5e38\u89c1\u95ee\u9898\u4e0e\u6392\u67e5\u601d\u8def<\/h3>\n<h4>Q1&#xff1a;\u80fd\u770b\u5230\u670d\u52a1\u5668&#xff0c;\u4f46\u8fdb\u4e0d\u53bb\/\u6ca1\u54cd\u5e94<\/h4>\n<p>\u4f18\u5148\u6309\u8fd9\u4e2a\u987a\u5e8f\u6392\u67e5&#xff1a;<\/p>\n<li>\n<p>pause_when_empty \u662f\u5426\u662f true&#xff1f;\u5efa\u8bae\u6539 false \u5e76\u91cd\u542f<\/p>\n<\/li>\n<li>\n<p>UFW \u53ea\u5f00\u4e86 UDP&#xff1f;\u8bf7\u628a TCP \u4e5f\u653e\u884c<\/p>\n<\/li>\n<li>\n<p>\u4e91\u5b89\u5168\u7ec4\u662f\u5426\u771f\u7684\u653e\u884c\u4e86\u7aef\u53e3&#xff1f;&#xff08;\u5f88\u591a\u4eba\u6f0f\u6389\u8fd9\u4e00\u5c42&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u770b master.log \/ caves.log \u6709\u6ca1\u6709\u660e\u663e\u62a5\u9519<\/p>\n<\/li>\n<h4>Q2&#xff1a;\u6d1e\u7a74\u4e00\u76f4\u8fde\u63a5\u4e0d\u4e0a\u5730\u9762<\/h4>\n<p>\u68c0\u67e5&#xff1a;<\/p>\n<ul>\n<li>\n<p>cluster.ini \u7684 [SHARD] \u662f\u5426 shard_enabled &#061; true<\/p>\n<\/li>\n<li>\n<p>master_ip &#061; 127.0.0.1\u3001master_port &#061; 10889 \u4e24\u8fb9\u4e00\u81f4<\/p>\n<\/li>\n<li>\n<p>cluster_key \u4e24\u8fb9\u4e00\u81f4<\/p>\n<\/li>\n<li>\n<p>Master \u7aef\u65e5\u5fd7\u91cc\u662f\u5426\u6709&#xff1a;Shard server started on port: 10889<\/p>\n<\/li>\n<\/ul>\n<h4>Q3&#xff1a;\u66f4\u65b0 DST \u670d\u52a1\u5668\u7248\u672c<\/h4>\n<p>\u4ee5\u540e\u66f4\u65b0\u53ea\u8981\u91cd\u65b0\u8dd1\u4e00\u6b21 SteamCMD&#xff1a;<\/p>\n<p>cd \/root\/steamcmd<br \/>\n.\/steamcmd.sh<\/p>\n<p>\u8f93\u5165&#xff1a;<\/p>\n<p>force_install_dir \/root\/dst_server<br \/>\nlogin anonymous<br \/>\napp_update 343050 validate<br \/>\nquit<\/p>\n<p>\u7136\u540e\u91cd\u542f\u670d\u52a1\u5668&#xff1a;<\/p>\n<p>pkill -9 -f dontstarve_dedicated_server_nullrenderer || true<br \/>\n\/root\/run_dst.sh<\/p>\n<hr \/>\n<h3>11. \u53ef\u9009\u589e\u5f3a&#xff08;\u5efa\u8bae\u4ee5\u540e\u518d\u505a&#xff09;<\/h3>\n<ul>\n<li>\n<p>\u7528 systemd \u505a\u6210\u5f00\u673a\u81ea\u542f<\/p>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u7ba1\u7406\u5458&#xff08;adminlist.txt&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5b89\u88c5 mod&#xff08;modoverrides.lua&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5b9a\u671f\u5907\u4efd\u5b58\u6863&#xff08;MyDediServer\/Master\/save \u548c MyDediServer\/Caves\/save&#xff09;<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>\u7ed3\u8bed<\/h3>\n<p>\u5230\u8fd9\u91cc&#xff0c;\u4f60\u5df2\u7ecf\u53ef\u4ee5\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u7a33\u5b9a\u8fd0\u884c\u300a\u9965\u8352\u8054\u673a\u7248\u300b\u4e13\u7528\u670d\u52a1\u5668\u4e86&#xff1a;<\/p>\n<ul>\n<li>\n<p>SteamCMD \u5b89\u88c5\u4e0e\u66f4\u65b0<\/p>\n<\/li>\n<li>\n<p>Klei Cluster Token \u914d\u7f6e<\/p>\n<\/li>\n<li>\n<p>\u5730\u9762 &#043; \u6d1e\u7a74\u5206\u7247\u914d\u7f6e<\/p>\n<\/li>\n<li>\n<p>\u4e00\u952e\u542f\u52a8\u811a\u672c<\/p>\n<\/li>\n<li>\n<p>\u9632\u706b\u5899\u4e0e\u4e91\u5b89\u5168\u7ec4\u653e\u884c<\/p>\n<\/li>\n<li>\n<p>\u65e5\u5fd7\u4e0e\u7aef\u53e3\u81ea\u68c0<\/p>\n<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u540e\u7eed\u60f3\u505a\u201c\u5f00\u673a\u81ea\u542f &#043; \u81ea\u52a8\u66f4\u65b0 &#043; \u5b9a\u671f\u5907\u4efd\u201d&#xff0c;\u53ef\u4ee5\u5728\u8fd9\u4e2a\u57fa\u7840\u4e0a\u7ee7\u7eed\u6269\u5c55\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9002\u7528\u4eba\u7fa4&#xff1a;\u96f6\u57fa\u7840\u3001\u53ea\u4f1a\u7528 SSH \u8fde\u63a5\u670d\u52a1\u5668\u7684\u4eba\u3002\u76ee\u6807&#xff1a;\u5728\u4e00\u53f0\u4e91\u670d\u52a1\u5668\u4e0a\u642d\u5efa Dont Starve Together&#xff08;DST&#xff0c;\u9965\u8352\u8054\u673a\u7248&#xff09; \u7684 Dedicated Server&#xff08;\u4e13\u7528\u670d\u52a1\u5668&#xff09;&#xff0c;\u4f60\u548c\u670b\u53cb\u7528 Steam \u6b63\u7248\u5728\u6e38\u620f\u91cc\u641c\u7d22\u5e76\u52a0\u5165\u30021. \u4f60\u9700\u8981\u51c6\u5907\u4ec0\u4e48\u4e00\u53f0\u4e91\u670d\u52a1\u5668&#xff08;\u5efa\u8bae Ubuntu 22.04 x64&#xff0c;2 \u6838 2G \u6216\u4ee5\u4e0a\u66f4\u7a33<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,103],"topic":[],"class_list":["post-82297","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u624b\u628a\u624b\u90e8\u7f72\u300a\u9965\u8352\u8054\u673a\u7248\u300b(DST) \u4e13\u7528\u670d\u52a1\u5668\uff08Ubuntu 22.04 \/ SteamCMD\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/82297.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u624b\u628a\u624b\u90e8\u7f72\u300a\u9965\u8352\u8054\u673a\u7248\u300b(DST) \u4e13\u7528\u670d\u52a1\u5668\uff08Ubuntu 22.04 \/ SteamCMD\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u9002\u7528\u4eba\u7fa4&#xff1a;\u96f6\u57fa\u7840\u3001\u53ea\u4f1a\u7528 SSH \u8fde\u63a5\u670d\u52a1\u5668\u7684\u4eba\u3002\u76ee\u6807&#xff1a;\u5728\u4e00\u53f0\u4e91\u670d\u52a1\u5668\u4e0a\u642d\u5efa Dont Starve Together&#xff08;DST&#xff0c;\u9965\u8352\u8054\u673a\u7248&#xff09; \u7684 Dedicated Server&#xff08;\u4e13\u7528\u670d\u52a1\u5668&#xff09;&#xff0c;\u4f60\u548c\u670b\u53cb\u7528 Steam \u6b63\u7248\u5728\u6e38\u620f\u91cc\u641c\u7d22\u5e76\u52a0\u5165\u30021. \u4f60\u9700\u8981\u51c6\u5907\u4ec0\u4e48\u4e00\u53f0\u4e91\u670d\u52a1\u5668&#xff08;\u5efa\u8bae Ubuntu 22.04 x64&#xff0c;2 \u6838 2G \u6216\u4ee5\u4e0a\u66f4\u7a33\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/82297.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-24T23:43:42+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82297.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/82297.html\",\"name\":\"\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u624b\u628a\u624b\u90e8\u7f72\u300a\u9965\u8352\u8054\u673a\u7248\u300b(DST) \u4e13\u7528\u670d\u52a1\u5668\uff08Ubuntu 22.04 \/ SteamCMD\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-24T23:43:42+00:00\",\"dateModified\":\"2026-07-24T23:43:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/82297.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/82297.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82297.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u624b\u628a\u624b\u90e8\u7f72\u300a\u9965\u8352\u8054\u673a\u7248\u300b(DST) \u4e13\u7528\u670d\u52a1\u5668\uff08Ubuntu 22.04 \/ SteamCMD\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u624b\u628a\u624b\u90e8\u7f72\u300a\u9965\u8352\u8054\u673a\u7248\u300b(DST) \u4e13\u7528\u670d\u52a1\u5668\uff08Ubuntu 22.04 \/ SteamCMD\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/82297.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u624b\u628a\u624b\u90e8\u7f72\u300a\u9965\u8352\u8054\u673a\u7248\u300b(DST) \u4e13\u7528\u670d\u52a1\u5668\uff08Ubuntu 22.04 \/ SteamCMD\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u9002\u7528\u4eba\u7fa4&#xff1a;\u96f6\u57fa\u7840\u3001\u53ea\u4f1a\u7528 SSH \u8fde\u63a5\u670d\u52a1\u5668\u7684\u4eba\u3002\u76ee\u6807&#xff1a;\u5728\u4e00\u53f0\u4e91\u670d\u52a1\u5668\u4e0a\u642d\u5efa Dont Starve Together&#xff08;DST&#xff0c;\u9965\u8352\u8054\u673a\u7248&#xff09; \u7684 Dedicated Server&#xff08;\u4e13\u7528\u670d\u52a1\u5668&#xff09;&#xff0c;\u4f60\u548c\u670b\u53cb\u7528 Steam \u6b63\u7248\u5728\u6e38\u620f\u91cc\u641c\u7d22\u5e76\u52a0\u5165\u30021. \u4f60\u9700\u8981\u51c6\u5907\u4ec0\u4e48\u4e00\u53f0\u4e91\u670d\u52a1\u5668&#xff08;\u5efa\u8bae Ubuntu 22.04 x64&#xff0c;2 \u6838 2G \u6216\u4ee5\u4e0a\u66f4\u7a33","og_url":"https:\/\/www.wsisp.com\/helps\/82297.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-24T23:43:42+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/82297.html","url":"https:\/\/www.wsisp.com\/helps\/82297.html","name":"\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u624b\u628a\u624b\u90e8\u7f72\u300a\u9965\u8352\u8054\u673a\u7248\u300b(DST) \u4e13\u7528\u670d\u52a1\u5668\uff08Ubuntu 22.04 \/ SteamCMD\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-24T23:43:42+00:00","dateModified":"2026-07-24T23:43:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/82297.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/82297.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/82297.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u624b\u628a\u624b\u90e8\u7f72\u300a\u9965\u8352\u8054\u673a\u7248\u300b(DST) \u4e13\u7528\u670d\u52a1\u5668\uff08Ubuntu 22.04 \/ SteamCMD\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/82297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=82297"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/82297\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=82297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=82297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=82297"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=82297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}