gamemode: The default gamemode (options are Survival, Creative, Adventure, and Spectator).difficulty: The difficulty level of the game (options are Peaceful, Easy, Normal, and Hard).
server-port: The port the server listens on (default is 25565).Here are some of the important settings you can configure in this file: Stop the server with the command stop in the Minecraft console and then start it again: $ java -Xmx1024M -Xms1024M -jar server.jar nogui Edit server.propertiesĮdit the server.properties file to configure the Minecraft server: $ nano server.properties Start the Minecraft server: $ java -Xmx1024M -Xms1024M -jar server.jar nogui Accept the EULAĪccept the End User License Agreement (EULA) by editing the eula.txt file: $ nano eula.txtĬhange eula=false to eula=true and save the file. Now switch to the minecraft user: $ sudo su - minecraft Download the Minecraft server softwareĭownload the Minecraft server software version 1.19.3: $ wget Start the Minecraft server 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.