- Lab
- A Cloud Guru
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.
Path 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.
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.