Centos7にARKServerを建てる

ARK:Survival EvolvedのServerをCentos7に建てる際の手順

1.GCCのインストール

  インストール状態の確認
$ yum info glibc libstdc++
...
インストール済みパッケージ
名前                : glibc
アーキテクチャー    : i686
バージョン          : 2.17
リリース            : 106.el7_2.6
容量                : 14 M
リポジトリー        : installed
提供元リポジトリー  : updates
要約                : The GNU libc libraries
URL                 : http://www.gnu.org/software/glibc/
ライセンス          : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
説明                : The glibc package contains standard libraries which are used by
                    : multiple programs on the system. In order to save disk space and
                    : memory, as well as to make upgrading easier, common system code is
                    : kept in one place and shared between programs. This particular package
                    : contains the most important sets of shared libraries: the standard C
                    : library and the standard math library. Without these two libraries, a
                    : Linux system will not function.

名前                : glibc
アーキテクチャー    : x86_64
バージョン          : 2.17
リリース            : 106.el7_2.6
容量                : 13 M
リポジトリー        : installed
提供元リポジトリー  : updates
要約                : The GNU libc libraries
URL                 : http://www.gnu.org/software/glibc/
ライセンス          : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
説明                : The glibc package contains standard libraries which are used by
                    : multiple programs on the system. In order to save disk space and
                    : memory, as well as to make upgrading easier, common system code is
                    : kept in one place and shared between programs. This particular package
                    : contains the most important sets of shared libraries: the standard C
                    : library and the standard math library. Without these two libraries, a
                    : Linux system will not function.

名前                : libstdc++
アーキテクチャー    : i686
バージョン          : 4.8.5
リリース            : 4.el7
容量                : 996 k
リポジトリー        : installed
提供元リポジトリー  : base
要約                : GNU Standard C++ Library
URL                 : http://gcc.gnu.org
ライセンス          : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
説明                : The libstdc++ package contains a rewritten standard compliant GCC Standard
                    : C++ Library.

名前                : libstdc++
アーキテクチャー    : x86_64
バージョン          : 4.8.5
リリース            : 4.el7
容量                : 1.0 M
リポジトリー        : installed
提供元リポジトリー  : anaconda
要約                : GNU Standard C++ Library
URL                 : http://gcc.gnu.org
ライセンス          : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
説明                : The libstdc++ package contains a rewritten standard compliant GCC Standard
                    : C++ Library.

  インストールされてなかったら
  $ yum install glibc libstdc++
 

2.SteamCMDの入手


3.SteamCMDの解凍

  $ tar -xvzf steamcmd_linux.tar.gz

4.SteamCMD起動

  $ sh steamcmd
  ...
  Steam: #これが表示されれば起動成功

  ログインする
  Steam: ユーザー名(SteamID)

  Logging in user 'ユーザー名' to Steam Public...
  password: パスワード

  This computer has not been authenticated for your account using Steam Guard.
  Please check your email for the message from Steam, and enter the Steam Guard
  code from that message.
  You can also enter this code at any time using 'set_steam_guard_code'
  at the console.
  Steam Guard code: # 登録ているEmailに認証コードが届くので入力

  以下が表示されれば、認証OK
  Logged in OK
  Waiting for license info...OK


5.インストールディレクトリ指定

  Steam: force_install_dir インストールしたいディレクトリ
  例)home/userディレクトリ配下にGameフォルダを作成し、インストール
      Steam: force_install_dir /home/ユーザー名/Game/ARK

6.ARKServerインストール

  以下のコマンドを入力し、インストール(結構時間かかります)
  Steam: app_update 376030 validate
  ※validateは、ファイルの検証も含めてダウンロードするため、このコマンドは入れておいたほうが良いです。
  ※376030はARKServerに割り当てられた、アプリケーションID(AppID)
    https://steamdb.info/app/376030/で確認可能

  以下が表示されればインストール完了
  Success! App '376030' fully installed.

Steam: quit # SteamCMDの修了

7.ARK: Survival Evolved Server起動

  # ShooterGame/Binaries/Linuxを開く

  $ cd インストールディレクトリ/ShooterGame/Binaries/Linux

  ■オープンで起動したい場合
./ShooterGameServer TheIsland?listen?SessionName=サーバー名?ServerAdminPassword=管理者パスワード -server -log

  ■プライベートで起動したい場合
./ShooterGameServer TheIsland?listen?SessionName=サーバー名?ServerPassword=ログインパスワード?ServerAdminPassword=管理者パスワード -server -log
  ※プライベートの場合、サーバー接続時にパスワードを求められる

起動コマンドを入力したら、しばらく待つ。
起動には時間がかかります。

!!!注意点!!!

サーバーとクライアントのバージョンは、基本的に同じにしなければなりません。

どちらかをアップデートしたなら、もう片方もアップデートすること。

0 件のコメント :