This article will teach you how to setup a Minecraft Pocket Edition server on CentOS 6. Setting up a Minecraft PE server is quite simple.
First, install the required libraries.
yum -y install m4 automake autoconf make gcc libtool
Once these libraries have finished installing, you must install the server script. We will be using PocketMine.
wget http://downloads.sourceforge.net/project/pocketmine/linux/installer.sh
Chmod the server script to make it executable.
chmod +x ./installer.sh
Begin the install process. This may take up to 5 minutes to install.
./installer.sh
Next, start the server.
./start.sh
Voila. We just need to make sure that port 19132 is open so that people can join. To open it in CentOS 6, run the following commands.
iptables -A INPUT -p tcp -m tcp --dport 19132 -j ACCEPT
service iptables save
service iptables restart
If you are running CentOS 7, then you must use firewalld to open it. To do so, perform the following commands:
firewall-cmd --zone=dmz --add-port=19132/tcp --permanent
firewall-cmd --reload
Your server is ready to go! Happy building!
Want to contribute?
You could earn up to $300 by adding new articles
Suggest an update
Request an article