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
Now, let's get started by installing Java-JDK:
yum install java-1.6.0-openjdk
Now, let's check if Java was installed:
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:
3. Enter the directory:
4. Time to get Minecraft:
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.
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:
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.