How to set up and run a Minecraft Server on Arm-Based Cloud Servers (CentOS 8)

2022-10-03 By Nathan 9282 Views linux minecraft java arm
0 reviews

minecraft

Minecraft was first launched back in 2009 and lets players build, explore, craft, and survive in a 3D-generated block world. It was among the most successful video game developed as of early 2022.


The server administrator can set the rules and participate in this interactive adventure game with friends by running their own Minecraft server.


Setting up server


  1. Log in as a root user.

  2. Update the server. Use the following command.

    # yum update -y
    

    minecraftarm1

  3. Create a new folder named minecraft in the home directory and change the directory to minecraft with the below commands.

    # mkdir /home/minecraft
    
    # cd /home/minecraft/
    

    minecraftarm2


Downloading Java


  1. Copy the download link for the latest version of java from the below page.

    https://www.oracle.com/java/technologies/javase/jdk18-archive-downloads.html
    

    minecraftarm3

  2. Download the supported package using wget command. In this case, we are using CentOS 8 and downloading the rpm package. The command is as follows.

    # wget https://download.oracle.com/java/18/archive/jdk-18.0.2.1_linux-aarch64_bin.rpm
    

    minecraftarm4

  3. Install downloaded jdk-18_linux-x64_bin.rpm using the rpm command.

    # rpm -ivh jdk-18.0.2.1_linux-aarch64_bin.rpm
    

    minecraftarm5

  4. Run the below command to verify the version.

    # java --version
    

    minecraftarm6


Installing Minecraft server


  1. Copy the latest Minecraft Server download link from the following website.

    https://www.minecraft.net/en-us/download/server
    

    minecraftarm7

  2. Run the below command to download the Minecraft Server. Make sure to download using the latest download link.

    # wget https://piston-data.mojang.com/v1/objects/f69c284232d7c7580bd89a5a4931c3581eae1378/server.jar
    

    minecraftarm8

  3. Install the Minecraft server using the following command.

    # java -Xmx1024M -Xms1024M -jar minecraft_server.1.19.2.jar nogui
    

    minecraftarm9

  4. Once the installation is completed, edit the eula.txt file.

    # vim eula.txt
    

    minecraftarm10


    Change the eula=false to eula=true.

    minecraftarm11

  5. Run the below commands to open ports in the firewall and reload to effect the changes.

    # firewall-cmd --permanent –zone=public --add-port=25565/tcp
    
    # firewall-cmd --permanent --zone=public --add-port=25565/udp
    
    # firewall-cmd --reload
    

    minecraftarm12

  6. Once firewall ports are configured, run the below command to start Minecraft server.

    # java -Xmx1024M -Xms1024M -jar minecraft_server.1.19.2.jar nogui
    

    minecraftarm11


The Minecraft server is ready and running. Now the user may log in to the Minecraft game and connect using the server IP. This is the better way to start with.


Related Tutorials

What do you think about this article?

Rate this article
LayerStack Promotion
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.