如何在 Linux VPS 上安装 SteamCMD

列印
  • 0

SteamCMD 是 Valve 的命令行工具,用于下载和更新 Steam 专用服务器文件。当游戏提供 Linux 专用服务器版本时,可以在 Linux VPS 上使用它。

首先通过 SSH 连接,然后使用与您的 Linux 发行版匹配的方法安装 SteamCMD。如果游戏仅提供 Windows 服务器版本,请改用 Windows VPS。

  1. 通过 SSH 连接到 VPS:如何通过 SSH 连接到 Linux VPS。
  2. 在 Ubuntu 或 Debian 上,启用 32 位包支持并安装 SteamCMD:
    sudo dpkg --add-architecture i386
    sudo apt update
    sudo apt install steamcmd
  3. 如果 Ubuntu 提示找不到包,启用 multiverse,更新包列表,然后再次安装:
    sudo add-apt-repository multiverse
    sudo apt update
    sudo apt install steamcmd
  4. 在 Debian 上,确保存储库行包含 contrib 和 non-free 或 non-free-firmware,然后再次运行 sudo apt update。
  5. 在 AlmaLinux、Rocky Linux、Oracle Linux 或 CentOS 风格的镜像上,使用手动 Valve 存档方法,因为 SteamCMD 通常在默认 dnf 存储库中不可用。

 

手动安装方法

  1. 安装基本工具:
    sudo mkdir -p /opt/steamcmd
    cd /opt/steamcmd
  2. 下载并解压 SteamCMD:
    sudo curl -o steamcmd_linux.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
    sudo tar -xvzf steamcmd_linux.tar.gz
  3. 从文件夹中运行 SteamCMD:
    cd /opt/steamcmd
    ./steamcmd.sh
  4. 通过替换 APPID 为游戏服务器应用 ID 来安装专用服务器:
    login anonymous
    force_install_dir /home/steam/myserver
    app_update APPID validate
    quit

    Linux VPS 终端显示 SteamCMD 正在安装专用服务器应用

某些游戏需要使用 Steam 账户登录而不是匿名登录。在假设匿名登录有效之前,请检查游戏专用服务器文档。


這篇文章有幫助嗎?

相關文章

« 返回

Follow us on Social Media

Stay in the loop! Follow our social media accounts and stay up-to-date with the latest news, announcements, tips & tricks and behind-the-scenes insights!