How To Install Minecraft on CentOS 6

The order for the installation to be successful, you need to consider some features: the first is to have access to the PuTTY SSH Client; the second is to have a vps rate of 1 GB RAM or more.


Creating a Minecraft server is easy. To do this, you just need to log into your VPS server and install Java 1.6.0 Open JDK

ssh root@ip.ip.ip.ip
[root@vultr ~]# yum install java-1.6.0-openjdk
<some output here>
Is this ok [y/N]: y

After that, you need to make the user run your Minecraft server. This is for security reasons only. We do not recommend running the Minecraft server as root.

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

Next, you need to change users and install the Minecraft server. Change your wget URL as shown below.

su - mcserver
mkdir minecraft
cd minecraft
chmod +x minecraft_server.jar
echo "eula=true" > eula.txt
#start your Minecraft Server
java -Xmx768M -Xms768M -jar minecraft_server.jar nogui

Done! Your Minecraft Server Launched Successfully!

Was this article helpful?

Related Articles