Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to create a new Minecraft Server with DigitalOcean

Creating a new Minecraft Server

This is a short and simple guide on how to set up a multiplayer server running the latest version of Minecraft.


Create a new Ubuntu 16.04 droplet on DigitalOcean. Make sure it has at least 2GB of RAM, and you provide it with your SSH key.

SSH into the server and install Java, which is required for Minecraft to run.

apt-get update && apt-get install default-jdk
java -version

Additionally, install Screen, which will allow us to run the server in the background.

apt-get install screen

Running the Server

Copy the download link of the latest Minecraft version here.

Create a directory to install the server files and download the server.

mkdir minecraft
wget -O minecraft_server.jar <paste-download-link-here>

Start a new screen session.

screen -S Server

Run the server.

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

Exit the screen session.


Editing Properties

A file is automatically created when you run the server for the first time. A list of properties can be found here.


Please note that after you edit the properties, you'll need to restart your server.


This comment has been minimized.

Copy link

commented Aug 18, 2019

Thanks for this!


This comment has been minimized.

Copy link

commented Aug 31, 2019

So simple. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.