This article will teach you how to set up a Minecraft Pocket Edition server on CentOS 6. Setting up a Minecraft PE server is quite simple.
yum -y install m4 automake autoconf make gcc libtoolOnce 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.shChmod The server script to make it executable.
chmod +x ./installer.shBegin the installation process. This may take up to 5 minutes to install.
./installer.shNext, start the server.
./start.shVoila. We just need to ensure that port 19132 is open so 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 restartIf 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 --reloadYour server is ready to go! Happy building!