Setting up a Minecraft Server on a VPS

Minecraft is gaining popularity among players of all ages worldwide. To enhance their gaming experience, many users decide to set up their own server. This article will guide you through setting up a Minecraft server on a Virtual Private Server (VPS).

Setting up a Minecraft server on a VPS might seem challenging for beginners, but following our instructions, you can easily manage it. First, you will need:

  • VPS server — a virtual private server to store the game world
  • Java — required for the Minecraft server to run
  • Minecraft server.jar — the server file itself, downloadable from the official Minecraft website

After preparing all the necessary materials, let’s proceed with the installation and configuration of the Minecraft server.

Step 1: Installing Java

The first step is installing Java on your VPS. Execute the following command:

Игровые серверы

Серверы для онлайн игр с низким пингом

Выбрать сервер

sudo apt install default-jdk

After installing Java, check the version using this command:

java -version

Once you’ve verified the version, proceed to the next step.

Step 2: Downloading Minecraft server.jar

The next step is downloading the Minecraft server file. Go to the official Minecraft website and download the server.jar file.

After downloading the file, move it to a separate folder on your VPS.

Step 3: Running the Minecraft Server

Now we’re ready to run the Minecraft server. Execute the following command:

java -Xmx1024M -Xms1024M -jar server.jar nogui

After starting the server, you can connect to it using your VPS’s IP address and port 25565.

Congratulations, you have successfully set up a Minecraft server on your VPS!