
It’s a best practice to run the Minecraft server as a separate user for security reasons: $ sudo adduser minecraft Switch to the minecraft user Minecraft server requires Java to run, so let’s install Java 17: $ sudo apt install openjdk-17-jdk Create a user for the Minecraft server Update the systemįirst, update the system to ensure all packages are up to date: $ sudo apt update & sudo apt upgrade Install Java 17

This guide focuses on setting up a Minecraft server on an Ubuntu-based system 18.04 / 20.04 / 22.04. Setting up a Minecraft server can be done on various operating systems, including Windows, macOS, and Linux. By hosting a Minecraft server, players can enjoy Minecraft together with friends, regardless of their location.


In Minecraft, players explore a blocky, procedurally generated 3D world and can build structures, craft items, and engage in other activities.Ī Minecraft server is a dedicated server that allows players to connect to the game over the internet or a local area network. Minecraft is a popular sandbox video game that was created by Markus Persson and developed and published by Mojang Studios.
