Minecraft Blogs / Tutorial

[Tutorial] How to setup Minecraft server on VPS

  • 21,357 views, 4 today
  • 14
  • 4
  • 8
Jack_Keeley's Avatar Jack_Keeley
Retired Moderator
Level 52 : Grandmaster 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
Tags

10 Update Logs

Update #10 : by Jack_Keeley 02/10/2016 5:51:14 pmFeb 10th, 2016

Updated!
LOAD MORE LOGS

Create an account or sign in to comment.

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

Website

© 2010 - 2024
www.planetminecraft.com

Welcome