VPS Tutorials Powered by PhotonVPS


Set up a Minecraft Server on CentOS

Setting up a Minecraft server can be pretty difficult if you don't know what you're doing. This tutorial is to simplify running it on CentOS 5.

We'll need to following:

- Dedicated Server / Xen based VPS
- CentOS 5.x 32bit/64bit
- 1GB of RAM or more
- Latest Java JDK
- Minecraft Server

Let's start with getting a Xen VPS, grab one from PhotonVPS. You'll need a Xen one, so I'll recommend a WARP2 or higher.

Now, let's get started by installing Java-JDK:

yum install java-1.6.0-openjdk

Now, let's check if Java was installed:

which java

It should display the following if it was properly installed:


We're done with that now, let's create a directory for Minecraft then install it:

1. Make sure we're in the root directory still:


2. Now let's create the directory:

mkdir Minecraft

3. Enter the directory:

cd Minecraft

4. Time to get Minecraft:

wget http://minecraft.net/download/minecraft_server.jar

5. We'll need to make sure Minecraft as all the correct permissions:

chmod +x minecraft_server.jar

Minecraft is now installed!

From here we'll need to install "screen" to keep the Minecraft server running after we close the SSH session.

Install screen:

yum install screen

Now, we'll use the screen and run Minecraft from there.


Starting up Minecraft now:

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

(*1024 value can be changed depending on how much RAM your VPS has)
Ex. 512MB VPS - java -Xmx512M -Xms512M -jar minecraft_server.jar nogui
Ex. 2048MB VPS - java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

To get back to the normal screen now you'll have to do the following:

Control + a + d

To get back to the screen where Minecraft is running:

screen -r

That's it for getting Minecraft up and running on CentOS!

If you need a VPS, check out PhotonVPS Xen based VPS and use coupon code "MINECRAFTVPS" to receive 10% recurring on all monthly plans.


Filed under: CentOS, Linux Leave a comment
Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

Spam Protection by WP-SpamFree

Trackbacks are disabled.