How to install Minecraft Server on CentOS 7


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
chmod + x minecraft_server.jar
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

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