Hello There, Guest! Login Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Properly setting up a Minecraft server.
HEY WHAT'S UP GUYS IT'S SCARCE haze here back with another video tutorial.
All jokes aside, I saw another tutorial to set up a server on here, but I've found that it was a bit lacking and only for Ubuntu.


0. SSH'ing
1. Installing openjdk (java)
2. Downloading the server and setting it up
3. (optional) Make the server run in the background and not shut off!
4. Tips and tricks

0. SSH
Let's SSH into the server! On Windows you can use Putty (plenty of tutorials available online) or SSH on Linux:
ssh [email protected]
Also, USER is mostly root.

1. Java
Assuming you've successfully SSH'ed into the server, first of all, we have to install openjdk/java.
If you are on Ubuntu or Debian (or similar/derivatives), you can do:
sudo apt-get install openjdk-8-jre
If you are on CentOS (or similar/derivatives), you can do:
yum install java-1.8.0-openjdk
If you are on a different Linux distro (how?!), you can try to follow this guide to try and compile the packages yourself, but it's not recommended for beginners and can be really hit and miss. You can always google specifically a build for your distro or maybe use Oracle Java (blegh).

2. Set up
Now you have a few options. You can download a vanilla Minecraft server, get a prebuilt version of Spigot or Bukkit (not linking as the pre-builts are illegal) or build it yourself. We'll stick to the first option for now.
Let's download the server:
wget https://s3.amazonaws.com/Minecraft.Downl...1.10.2.jar
curl -O https://s3.amazonaws.com/Minecraft.Downl...1.10.2.jar 

Of course in the future this version may not be the latest, so please change 1.10.2 to the appropriate version.

Now let's test our server out! To start the the server, execute the following command:
java -jar minecraft_server.1.10.2.jar 

If this worked you should see your server start up! You're done now, but there are a few extra (recommended but optional) steps to take.

3. Run in background
Noticed that your server shuts down when you disconnect from Putty or SSH? Let's fix that!
Install screen (
sudo apt-get install tmux / yum install tmux
) and type '
' in the terminal

Now run your server and exit tmux (ctrl+b and then ctrl+d) and boom! Your server is now running in the background. To get back to it to for example restart the server, just type '
tmux attach
' and you'll be back in your server's console.

4. Tips

  • Watch out for DDoSing and read the ToS of your VPS carefully.

  • Always try to use as little plugins as possible to save RAM space. Trust me it helps. 10 plugins should be about enough.

  • Make sure your server complies with Mojang's TOS (no p2w...)
Alright, thanks for reading. Post any feedback below. Haze out, peace :3
!!! Don't run game servers as root. !!! - It is a bad security practice.

"maybe use Oracle Java (blegh)." - I'd rather use IBM Java than any of the ones you mentioned here. IBM Java compared to the other Java versions is running much better and has a lower memory footprint. It even allows you to start a Java application such as a Minecraft server on a server with a very small amount of RAM (we're talking about stuff like <256 MB RAM). Normal Java would end up with a crash and a error about not enough memory available. It does wonders when you have a small and limited server but want to host a Minecraft server on it.

"not linking as the pre-builts are illegal" - Where did you get that though? Bukkit is one of the most popular and commonly used Minecraft servers for Vanilla Minecraft game mode servers. And Spigot is just another Minecraft server with a different goal (high performance and no lags it seems). Not sure how or why these are illegal. They do not break any laws, do not bypass DRM or violate anyones copyright. And the forum rules here absolutely do not mention anything about that either. I used to use Bukkit to host my servers back when I played Minecraft.

Forum Jump:

Users browsing this thread:
1 Guest(s)