Minecraft Blogs / Tutorial

[Tutorial] How to setup a Basic Minecraft Server Linux CentOS [1.8.9+]

  • 1,524 views, 1 today
  • 2
  • 0
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 a Basic Minecraft Server Linux CentOS [1.8.9+]
Step 2.

Once you have Used Putty to connect to your Server you will be presented with your server console. 
[Tutorial] How to setup a Basic Minecraft Server Linux CentOS [1.8.9+]

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 a Basic Minecraft Server Linux CentOS [1.8.9+]


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

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome