LoginSignup
1
1

More than 5 years have passed since last update.

2回目の マインクラフトPE マルチプレイサーバー セットアップ時のメモ

Posted at

前回のメモ

2回目にむけて

手順をひととおりまとめて、ここに書いた手順通りにやればサーバーが立てられる状態をめざしたい。

環境

  • さくらのクラウド
  • CentOS 7
  • マインクラフトPE 0.14.3

はじめに

マインクラフトPEのマルチプレイサーバー(PocketMine-MP)のセットアップ(2回目)時のメモです。

メモ

  • マインクラフトPEのPEとは、Pocket Editionの略。簡単に言うとスマホ(iPhone, Android)版のこと。
  • PEと、PC版と、コンシューマーゲーム機版(プレステ版など)は、基本的に互換性がない。
  • PEのマルチプレイサーバーのソフトは、PocketMine-MPというソフト。(公式が提供するものではない?他にもあるかも?)
  • pharファイルというファイル(jarのPHP版?)を最新のものをダウンロードして置き換えることが必要。(プレイしているクライアントのバージョンよりも低いバージョン用のサーバでは動かない)

コマンドメモ

#root ユーザー以外のユーザーを作ってセットアップするのが原則
useradd hoge
passwd hoge

#とりあえず yum update しておく
yum -y update

#前提パッケージのインストール(すでに入っているかも?)
yum install perl gcc make automake libtool autoconf m4

#wget インストールする
yum -y install wget

#PocketMine-MP をダウンロードする
wget -q -O - http://get.pocketmine.net/ | bash

#現在公開されているものは最新バージョン用にまとまっておらず、いくつか追加の手順が必要
#PHPのバージョンが古いので、ベットダウンロードしてきて、bin ディレクトリ毎入れ替える
#上記手順なので、PHP を yum でインストールしたりはしなくても大丈夫
wget -O PHP_7.0.3_x86-64_Linux.tar.gz https://bintray.com/pocketmine/PocketMine/download_file?file_path=PHP_7.0.3_x86-64_Linux.tar.gz

#展開する
tar -xvf PHP_7.0.3_x86-64_Linux.tar.gz

#phar ファイル(プラグインパック?)の新しいのをダウンロードして、ファイルを入れ替えることが必要

#0.14.2用
wget -O PocketMine-MP.phar https://bintray.com/pocketmine/PocketMine/download_file?file_path=PocketMine-MP_1.6dev-24_ac482621_API-2.0.0.phar

#0.14.3用
wget -O PocketMine-MP.phar https://bintray.com/pocketmine/PocketMine/download_file?file_path=PocketMine-MP_1.6dev-25_e2d079a7_API-2.0.0.phar

#firewalld で ポートを開ける。この辺りは、まだまだ勉強しないといけない。
firewall-cmd --add-port=19132/udp --zone=public --permanent
firewall-cmd --reload

#スタート用のシェルスクリプトを起動する
./start.sh

#今回参考にさせていただいた主なページ。感謝 :pray: 
- [PocketMine-MP公式サイト](https://www.pocketmine.net/?lang=ja)
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1