- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Creating Your Own Minecraft Java Edition Server on CentOS
Have you ever wanted to play Minecraft with your friends, or maybe your kids, but didn't want to have to spend money to rent expensive Minecraft servers? Have you ever then thought about creating your own Minecraft server, but got intimidated by the technical steps required to do so? In this hands-on lab, you will be provided with a CentOS 7 Linux server on which you will create your very own Minecraft Java Edition server! This lab will provide clarity not just on how to create a Minecraft server, but also on some Linux fundamentals.

Lab Info
Table of Contents
-
Challenge
Prepare the Server with a Minecraft User Account
- Create a
minecraft
user account and group.
- Create a
-
Challenge
Download and Deploy the Minecraft Server JAR
- Create the
minecraft
installation directory. - Change the user and group ownership of the installation directory to
minecraft
. - Download the latest Minecraft server JAR to the installation directory.
- As the
minecraft
user, execute theserver.jar
to create the rest of the server files. - Accept the Minecraft server EULA.
- Create the
-
Challenge
Whitelist and Grant Operator Status to Your Minecraft User Account on the Minecraft Server
- Enable the Minecraft server whitelist.
- Start Minecraft in the foreground.
- Grant your Minecraft account operator status (use
Quartermyle
if you do not have a Minecraft user account). - Whitelist your Minecraft account (use
Quartermyle
if you do not have a Minecraft user account). - Stop the Minecraft server.
-
Challenge
Create a systemd Service for Your Minecraft Server and Enable On-Boot Startup
- Create the systemd
minecraft
service file. - Enable the Minecraft server to start on system boot.
- Start your Minecraft server using
systemctl
.
- Create the systemd
-
Challenge
(Optional) Join Your Minecraft Server Using the Minecraft Game Client
- Start your Minecraft game client with the same version of Minecraft as your server.
- In the "Multiplayer" menu, add a new server using the public IP address of your lab server.
- Join your Minecraft server.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.