限时抢购 50% 全场服务器优惠 即将结束!
距结束还剩: 00D 00H 00M 00S
background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
分类

CS2 管理员设置:RCON、命令与竞技配置


本指南介绍如何在 Legion Hosting 上为 Counter-Strike 2 服务器设置管理员权限、RCON、管理员命令和竞技比赛配置。有关初始服务器设置(包括 GSLT、游戏模式和连接方式),请参阅 CS2 服务器设置指南

RCON(远程控制台)设置

RCON 允许您从游戏内控制台或 GPanel 远程运行服务器命令,无需重启。它通过 server.cfg 中的 rcon_password cvar 进行配置。

设置 RCON 密码

通过 GPanel 中的 File Manager 或通过 SFTP 打开 game/csgo/cfg/server.cfg,添加或编辑以下内容:

rcon_password "YourStrongPassword"
安全提示: 请使用强且唯一的 RCON 密码。任何拥有您 RCON 密码的人都可以完全控制您的服务器——他们可以更换地图、踢出玩家、修改设置并执行任何命令。

在游戏内使用 RCON

使用 `(波浪键)打开开发者控制台。先进行身份验证,然后输入命令:

rcon_password YourStrongPassword
rcon changelevel de_mirage
rcon mp_maxrounds 30
rcon status

验证通过后,每个命令前加上 rcon 前缀即可在服务器上执行。

从 GPanel 使用 RCON

您也可以直接在 GPanelConsole 选项卡中运行命令,无需 rcon 前缀。这是最简便的服务器管理方式。

常用管理员命令

以下命令可通过 RCON 或 GPanel 控制台运行。

玩家管理

命令 描述
status 列出所有已连接玩家及其 Steam ID 和延迟
kick <name> 按名称踢出玩家
kickid <userid> 按用户 ID 踢出玩家(来自 status 输出)
banid <minutes> <steamid> 按 Steam ID 封禁玩家(0 = 永久封禁)
removeid <steamid> 从封禁列表中移除某个 Steam ID
users 列出已验证的 RCON 用户

服务器控制

命令 描述
changelevel <map> 更换当前地图(例如 de_inferno
mp_restartgame 1 1 秒后重启当前游戏
mp_warmup_end 立即结束热身
mp_pause_match 暂停当前比赛
mp_unpause_match 取消暂停当前比赛
bot_add_t / bot_add_ct 向指定队伍添加机器人
bot_kick 踢出服务器中所有机器人
exec <filename> 执行配置文件(例如 exec competitive.cfg

竞技比赛配置

对于竞技比赛,创建或编辑 game/csgo/cfg/autoexec.cfg(每次地图加载时自动执行),在游戏模式默认设置基础上应用竞技调优:

// -----------------------------------------------
// Competitive / match settings
// -----------------------------------------------
mp_overtime_enable 1              // Enable overtime if scores are tied
mp_overtime_maxrounds 6           // Rounds per overtime half (3+3)
mp_overtime_halftime_pausetimer 0
mp_halftime 1                     // Enable halftime side switch
mp_maxrounds 24                   // Standard 12 per half

mp_freezetime 15                  // Seconds players are frozen at round start
mp_roundtime 1.92                 // Round time in minutes (1:55 approx)
mp_roundtime_defuse 1.92
mp_buytime 20                     // Seconds players can buy after round start
mp_buy_anywhere 0                 // Players must be in buy zone
mp_startmoney 800                 // Starting money

mp_friendlyfire 1                 // Team damage on (standard competitive)
mp_warmup_pausetimer 0
mp_warmuptime 30

// -----------------------------------------------
// Anti-cheat and security
// -----------------------------------------------
sv_pure 1                         // Only allow official files (1) or workshop (0)
sv_pure_kick_clients 1

// -----------------------------------------------
// Bot behaviour (remove bots for real matches)
// -----------------------------------------------
bot_quota 0
bot_join_after_player 0
提示: 您可以为不同场景创建多个配置文件(例如 practice.cfgmatch.cfgwarmup.cfg),并通过 RCON 或 GPanel 控制台使用 exec practice.cfg 加载它们。

GOTV(观战和录像)

GOTV 允许观众以可配置的延迟观看比赛,并可录制录像供赛后回顾。将以下设置添加到您的 server.cfg 中:

tv_enable 1                       // Enable GOTV
tv_name "GOTV"                    // Name shown to spectators
tv_delay 30                       // Delay in seconds before GOTV shows action
tv_maxclients 10                  // Maximum GOTV spectators
GOTV 端口: 请在 GPanelNetwork 选项卡中查看分配的 GOTV 端口。观众使用 connect YOUR.SERVER.IP:GOTV_PORT 进行连接。

通过 RCON 手动录制录像:

tv_record mydemoclip
// ... match plays ...
tv_stoprecord

录像文件保存在服务器的 game/csgo/ 目录中,可通过 SFTP 下载。

相关文章

需要帮助? 如果按照本指南操作后仍无法解决问题,请在 legionhosting.net/submitticket.php 提交工单,并提供您服务器的 GPanel ID 以及控制台中的错误信息。

这篇文章对您有帮助吗?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.