
This is good security practice because this user will not be able to login via SSH. To do so run the following command: sudo useradd -r -m -U -d /opt/minecraft -s /bin/bash minecraft The next step is to create a new system userĪnd group with home directory /opt/minecraft that will run the Minecraft server. OpenJDK 64-Bit Server VM (build 25.212-b01, mixed mode) Verify the installation by running: java -version openjdk version "1.8.0_212" This version is more suitable for server applications since it has fewer dependencies and uses less system resources: sudo apt install openjdk-8-jre-headless We’ll install the headless version of the JRE. Install the packages required to build the mcrcon tool: sudo apt update sudo apt install git build-essential Installing Java Runtime Environment # The user you are logged in as must have sudo privileges We’ll also show you how to create a cronjob that will perform regular server backups. We’ll use Systemd to run the Minecraft server and the mcrcon utility to connect to the running instance. This tutorial explains how to install and configure Minecraft Server on Debian 9. It is a sandbox video game about building various structures and going on adventures.

Minecraft is one of the most popular games of all time.
