{"id":187,"date":"2017-03-18T17:19:44","date_gmt":"2017-03-18T09:19:44","guid":{"rendered":"http:\/\/blog.bilicloud.com\/?p=187"},"modified":"2017-03-18T17:19:44","modified_gmt":"2017-03-18T09:19:44","slug":"debian%e4%b8%8b%e6%90%9e%e4%b8%aacsgo%e6%9c%8d%e5%8a%a1%e7%ab%af","status":"publish","type":"post","link":"https:\/\/blog.foxsar.black\/?p=187","title":{"rendered":"debian\u4e0b\u641e\u4e2aCSGO\u670d\u52a1\u7aef"},"content":{"rendered":"<p>\t\t\t\tRT \u95f2\u7740\u86cb\u75bc \u6b63\u597d\u5751\u90fd\u8e29\u5b8c\u4e86 \u5c31\u7559\u4e2a\u8bb0\u5f55 \u8fd9\u6b21\u9664\u4e86\u8fd0\u884cSteamCMD\u4e4b\u524d\u6709\u4e00\u4e2a\u524d\u7f6e\u9700\u8981\u5b89\u88c5\u4f1a\u7528\u5230root\uff0c\u5176\u5b83\u65f6\u5019\u90fd\u4e0d\u9700\u8981root\u4e5f\u4e0d\u9700\u8981sudo \u6240\u4ee5\u8fd8\u662f\u5f88\u65b9\u4fbf\u7684<br \/>\n\u4e00\u3001\u90e8\u7f72SteamCMD<br \/>\n\u6309\u7167<a href=\"https:\/\/developer.valvesoftware.com\/wiki\/SteamCMD#Downloading_SteamCMD\">\u5b98\u65b9wiki<\/a>\uff0c\u5148\u5b89\u88c5\u4e00\u4e2a\u524d\u7f6e<br \/>\napt-get install lib32gcc1<br \/>\n\u7136\u540e\u5b89\u88c5SteamCMD\uff0c\u8fd9\u91cc\u6709\u4e24\u79cd\u65b9\u5f0f<br \/>\n1\u3001\u7528apt-get \u4e5f\u5c31\u662f\u76f4\u63a5<\/p>\n<pre>apt-get install steamcmd<\/pre>\n<p>\u4f46\u662f\u8fd9\u4e2a\u8981\u6c42\u4f60\u7684apt\u6e90\u8981\u6709\u8fd9\u4e2a\u5305\uff0c\u56fd\u5185\u7684\u6e90\u4f3c\u4e4e\u5f88\u591a\u90fd\u6ca1\u6709\uff0c\u6240\u4ee5\u8981\u7528\u7b2c\u4e8c\u79cd\u65b9\u5f0f<br \/>\n2\u3001\u76f4\u63a5wget\u7136\u540e\u89e3\u538b\u7f29 \u8fd9\u91cc\u5c31\u4e0d\u9700\u8981\u89e3\u91ca\u4e86\uff0c\u5b98\u65b9\u7559\u4e86\u4e2a\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\">https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz<\/a><br \/>\n\u8fd9\u91cc\u56e0\u4e3a\u6211\u7684apt\u6e90\u6ca1\u6709 \u6240\u4ee5\u6211\u4e5f\u9009\u62e9\u4e86\u7b2c\u4e8c\u79cd\u65b9\u5f0f\uff0c\u552f\u4e00\u7684\u533a\u522b\u662f\u542f\u52a8steamcmd\uff0c\u540e\u8005\u662f\u8fd0\u884csh\uff0c\u524d\u8005\u76f4\u63a5steamcmd\u5373\u53ef<br \/>\n\u4e8c\u3001\u4e0b\u8f7dCSGO\u670d\u52a1\u7aef<br \/>\n\u5148\u51c6\u5907\u597d\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u4e00\u4f1a\u6211\u4eec\u4e0b\u8f7d\u7684\u65f6\u5019\u8981\u8bbe\u7f6e\u8def\u5f84\uff0c\u5426\u5219\u8bbe\u7f6e\u7684\u8def\u5f84\u5982\u679c\u4e0d\u5b58\u5728\u7684\u8bdd\u5e76\u4e0d\u4f1a\u81ea\u52a8\u521b\u5efa\uff0c\u800c\u662f\u4e0b\u8f7d\u5230\u4f60\u7528\u6237\u7684home\u4e0b\uff0c\u8fd9\u91cc\u5047\u8bbe\u6211\u4eec\u4e22\u5230\/var\/csgo\u4e0b\uff0c\u4e14\u6587\u4ef6\u5939\u5df2\u7ecf\u521b\u5efa\u597d<br \/>\n\u7136\u540e\u542f\u52a8SteamCMD<\/p>\n<pre>.\/steamcmd.sh<\/pre>\n<p>\u4e4b\u540e\u767b\u9646\u4e00\u4e0b <\/p>\n<pre>login anonymous<\/pre>\n<p>\u767b\u9646\u540e\u8bbe\u7f6e\u4e0b\u8f7d\u8def\u5f84 <\/p>\n<pre>force_install_dir \/var\/csgo<\/pre>\n<p>\u7136\u540e\u4e0b\u8f7d\u00a0<\/p>\n<pre>app_update 740 validate<\/pre>\n<p>\u7531\u4e8eG\u80d6\u7684\u670d\u52a1\u5668\u4e5f\u4e0d\u600e\u4e48\u597d \u6240\u4ee5\u6709\u65f6\u5019\u4f1a\u65ad\uff0c\u8fd9\u79cd\u65f6\u5019\u53ef\u4ee5\u5c1d\u8bd5\u7ee7\u7eed\u6267\u884c\u4e0b\u8f7d\u7684\u547d\u4ee4\uff0c\u5982\u679c\u4e0d\u80fd\u6267\u884c\u7684\u8bdd\u5c31\u53ea\u80fd\u76f4\u63a5\u9000\u51fa\uff0c\u7136\u540e\u91cd\u542fSteamCMD\uff0c\u91cd\u542f\u540e\u6709\u4e00\u4e2a\u5de8\u5751\u8981\u6ce8\u610f\uff0c\u5c31\u662f\u4f60\u9700\u8981\u5b8c\u6574\u7684\u91cd\u65b0\u6267\u884c\u767b\u9646&#8211;&gt;\u8bbe\u7f6e\u8def\u5f84&#8211;&gt;\u4e0b\u8f7d\uff0c\u7f3a\u4e00\u4e0d\u53ef\uff0c\u5982\u679c\u4e0d\u91cd\u65b0\u8bbe\u7f6e\u8def\u5f84\u7684\u8bdd\uff0c\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u5230home\uff0c\u7136\u540e\u5c31\u4f1a\u53d8\u6210\u91cd\u65b0\u4e0b\u8f7d\u7684\u60c5\u5f62<br \/>\n\u987a\u4fbf\u63d0\u4e00\u4e0b \u4ee5\u540e\u670d\u52a1\u7aef\u5347\u7ea7\uff0c\u4e5f\u662f\u7528\u540c\u6837\u7684\u6b65\u9aa4\u548c\u547d\u4ee4\uff0cCMD\u4f1a\u81ea\u52a8\u68c0\u6d4b\u5347\u7ea7\u5e76\u66f4\u65b0<br \/>\n\u4e09\u3001\u585e\u70b9\u81ea\u5b9a\u4e49\u5730\u56fe<br \/>\n\u8fd9\u4e2a\u633a\u7b80\u5355\u7684 \/\u6839\u76ee\u5f55\/csgo\/maps\/ \u8fd9\u91cc \u4e22\u8fdb\u53bb\u5c31\u597d~<br \/>\n\u56db\u3001\u914d\u7f6e\u4e0b\u670d\u52a1\u7aef<br \/>\n\u8fd9\u91cc\u6709\u4ee5\u4e0b\u51e0\u70b9\u8981\u914d\u7f6e\uff0c\u9996\u5148\u9700\u8981\u7533\u8bf7\u4e00\u4e2akey\u3002\u3002\u3002<br \/>\n\u6211\u4eec\u8bbf\u95ee\u4e00\u4e0b\u8fd9\u91cc\uff1a<a href=\"https:\/\/steamcommunity.com\/dev\/managegameservers\">https:\/\/steamcommunity.com\/dev\/managegameservers<\/a><br \/>\n\u767b\u9646\u4f60\u7684\u8d26\u53f7 \u7136\u540e\u6e38\u620fID\u8f93\u5165\u8fdb\u53bb\uff08csgo\u662f730\uff09\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u597d\u8bb0\u7684\u540d\u5b57\uff0c\u7136\u540e\u751f\u6210<br \/>\n\u4e4b\u540e\u6211\u4eec\u521b\u5efa\u4e00\u4e2ash\u5728\u6839\u76ee\u5f55 \u5199\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre>Classic Casual\uff08\u7ecf\u5178\u4f11\u95f2\u6a21\u5f0f\uff09:\n.\/srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_bomb +map de_dust2\nCompetitive\uff08\u7ecf\u5178\u7ade\u6280\u6a21\u5f0f\uff09:\n.\/srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_bomb +map de_dust2\nArms Race\uff08\u519b\u5907\u7ade\u8d5b\u6a21\u5f0f\uff09:\n.\/srcds_run -game csgo -console -usercon +game_type 1 +game_mode 0 +mapgroup mg_armsrace +map ar_shoots\nDemolition\uff08\u7206\u7834\u6a21\u5f0f\uff09:\n.\/srcds_run -game csgo -console -usercon +game_type 1 +game_mode 1 +mapgroup mg_demolition +map de_lake<\/pre>\n<p>\u603b\u4e4b\u6309\u7167\u4f60\u9700\u8981\u7684\u53bb\u8d34\u8fdb\u53bb\uff0c\u6216\u8005\u5e72\u8106\u56db\u4e2a\u90fd\u521b\u5efa\u4e5f\u4e0d\u662f\u4e0d\u53ef\u4ee5<br \/>\n\u4e4b\u540e\u8fdb\u5165~\/csgo\/cfg\/\u6587\u4ef6\u5939\u5185 \u521b\u5efa\u4e00\u4e2acfg<\/p>\n<pre>vim\u00a0autoexec.cfg\nlog on \/\/This is set to turn on logging! Don't put this in your server.cfg\nhostname \"&lt;\u670d\u52a1\u5668\u540d\u79f0&gt;\"\nrcon_password \"&lt;op\u5bc6\u7801&gt;\"\nsv_password \"&lt;\u670d\u52a1\u5668\u5bc6\u7801\uff0c\u9ed8\u8ba4\u4e3a\u7a7a&gt;\" \/\/Only set this if you intend to have a private server!\nsv_cheats 0 \/\/This should always be set, so you know it's not on\nsv_lan 0 \/\/This should always be set, so you know it's not on\nsv_setsteamaccount &lt;\u4f60\u7533\u8bf7\u5230\u7684token&gt;\nexec banned_user.cfg\nexec banned_ip.cfg<\/pre>\n<p>\u4fdd\u5b58\u9000\u51fa<\/p>\n<pre>vim server.cfg\nexec autoexec.cfg<\/pre>\n<p>\u4fdd\u5b58\u9000\u51fa<br \/>\n\u6700\u540e\u542f\u52a8\u670d\u52a1\u5668 \u7406\u8bba\u4e0a\u5c31\u80fd\u76f4\u63a5\u542f\u52a8\u4e86~\u53cd\u6b63\u6211\u662f\u80fd\u7528\u4e86\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RT \u95f2\u7740\u86cb\u75bc \u6b63\u597d\u5751\u90fd\u8e29\u5b8c\u4e86 \u5c31\u7559\u4e2a\u8bb0\u5f55 \u8fd9\u6b21\u9664\u4e86\u8fd0\u884cSteamCMD\u4e4b\u524d\u6709\u4e00\u4e2a\u524d\u7f6e\u9700\u8981\u5b89\u88c5\u4f1a\u7528\u5230root\uff0c &hellip; <a href=\"https:\/\/blog.foxsar.black\/?p=187\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">debian\u4e0b\u641e\u4e2aCSGO\u670d\u52a1\u7aef<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-187","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=187"}],"version-history":[{"count":0,"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=\/wp\/v2\/posts\/187\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}