Blogs Tutorial

[Tutorial] How to setup Minecraft server on VPS

  • 21.6k views 0 today
  • 15
  • 5
  • 8
Jack_Keeley
Retired Moderator
Lvl 52Grandmaster Network
92
Hi, This is a simple Tutorial on how to setup a basic Minecraft Server on a CentOS VPS or Dedicated Server!

Pros to using a VPS/Dedi VS. a MC Hosting Company

  • Cheap Prices
  • Full Control to Machine
  • Dedicated IP Address without Port
  • Ability to run other services (MySQL, Web Server, Teamspeak, etc)

Requirments
  • Putty
  • 1GB of RAM VPS/Dedi
Step 1.

First Step to setting up a MC Server is to have a server to host it on, For this example, I will be using a 1GB VPS from DigitalOcean.

[Tutorial] How to setup Minecraft server on VPS
Step 2.

Once you have Used Putty to connect to your Server you will be presented with your server console. 
[Tutorial] How to setup Minecraft server on VPS

change directories to home, then create the directory minecraft to store the server, then browse to minecraft.net/download and choose the jar version of the latest Minecraft Server

[Tutorial] How to setup Minecraft server on VPS


cd /
cd home
mkdir minecraft
cd minecraft
wget https://s3.amazonaws.com/Minecraft.Download/versions/1.8.9/minecraft_server.1.8.9.jar

Step 3. 


You will also need to install Java on the server so that it can run the minecraft jar file

sudo yum install java-1.7.0-openjdk
Step 4. 


You will now be able to start the server, change minecraft_server1.8.9.jar to whatever the name of the most recent jarfile is.

java -Xmx512M -Xms512M -jar minecraft_server.1.8.9.jar nogui






Use a text editor (Such as nano) to accept the EULA and save the txt file.



You are now able to successfully start the server with the command 
java -Xmx1024M -Xms1024M -jar minecraft_server1.8.9jar.-jar nogui


You are now able to connect to your MC Server with the same IP that you used to connect to the VPS/Dedi!





You can also use the stop command to gracefully shutdown the server and to make sure that all of the worlds are saved :D.



Enjoy!!!

- Jack

SpeedTest LOL

10 Update Logs

Update #10 : by Jack_Keeley 02/10/2016 5:51:14 pmFebruary 10, 2016 @ 10:51 pm UTC

Updated!
LOAD MORE LOGS

More like this

  Have something to say?

eagoy
01/10/2014 4:23 pm
Level 27 : Expert Aesthetic
Just curious but why do you recommend to install openJDK 1.6 when 1.7 is already out?

ps.
image 1,2,3 and last one doesn't work.
1
KingAkward
01/10/2014 8:39 am
Level 13 : Journeyman Warrior
*finds this tutorial*LETS DO DIS!
1
famo plays MC
11/18/2013 10:09 am
Level 4 : Apprentice Miner
looks helpful
1
usb91130
08/02/2013 10:05 pm
Level 9 : Apprentice Miner
hi when i enter this java -Xmx1024M -Xms1024M -jar craftbukkit.jar nogui
i get server crash ? help plz
1
Moderocky
09/11/2015 3:42 pm
Level 4 : Apprentice Network
no gui is separate words. Try using 512 rather than 1024.
1
Neptune83
06/15/2013 5:51 pm
Level 1 : New Miner
Good tutorial i am curious how would you download craftbukkit for vps?
1
Declan102
12/23/2012 2:46 am
Level 1 : New Crafter
Good tutorial
1
Jack_Keeley
12/24/2012 8:04 pm
Level 52 : Grandmaster Network
Thanks!
1

Welcome