How to install Minecraft Server on CentOS 7

Requirements

Putty SSH Client
1 XBOX RAM VPS Server 7 XWINX x64 Installed.

How to Install

yum install java-1.6.0-openjdk
firewall-cmd -zone = public -permanent -add-port = 25565 / tcp
firewall-cmd -reload

adduser mcserver
#set a secure password.
passwd mcserver
#this allows you to run screen while su'd from root for the next step
chown mcserver `tty`

su - mcserver
mkdir minecraft
cd minecraft
wget -O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.11.2/minecraft_server.1.11.2.jar
chmod + x minecraft_server.jar
screen
echo "eula = true"> eula.txt
#start your Minecraft Server
java -Xmx768M -Xms768M -jar minecraft_server.jar nogui

How to install Glowstone (Minecraft) on CentOS 7

yum install java screen nano
cd ~
mkdir Glowstone
cd glowstone
wget https://circleci.com/api/v1.1/project/github/GlowstoneMC/Glowstone/latest/artifacts/0/%24CIRCLE_ARTIFACTS/glowstone.jar
nano start.sh

Put this command to solve the 512 is the size of the RAM you use.
java -Xms512M -Xmx512M -jar glowstone.jar

How to delete when you do not want to use

cd ~
rm -rf Glowstone
yum -y remove java