How to store your own Minecraft server

Minecraft is still a very popular game and an interesting part of this game is the ability to store and run your own servers. Storing a Minecraft server is very simple and you can run it quickly.

This tutorial will show you one of the many ways to run Minecraft server. This method is one of the simplest and most stable server settings possible at the present time.

Instructions for storing personal Minecraft servers

  1. Before start
  2. Install dependencies
  3. Download Minecraft server
  4. Write a startup script
  5. Start the server

Before start

If you specify to run Minecraft server on the local network, this is not a problem, but if you want people to be able to play on your server over the Internet, you will need to find the appropriate hosting service for the server.

There are many great options that you can use to store Minecraft server.Linode and DigitalOcean are often a safe option. You will need a VPS (Virtual Private Server) to host Minecraft. You can store on cheap shared hosting, often designed to host simple websites.

In addition, you should also host the server on Linux. Although Minecraft server can be run on Windows, generally, storing on Linux will be cheaper and maintenance is easier. Ubuntu is one of the reliable Linux distributions. It's quite friendly to beginners, stable and has an active community to help if you need it.

Everything here assumes that you are hosting and have access to a terminal, via SSH or the web interface provided by your server. Any good VPS server will allow you to access the terminal.

Install dependencies

How to store your own Minecraft server Picture 1

You will need to install some software packages before you can run Minecraft server. You can install them directly with the Ubuntu Apt package manager. Start by running the following command in the terminal on your server:

 sudo apt install default-jdk screen wget 

If you have never used a Linux package manager before, wait a few seconds while Ubuntu installs the new software. It will notify you when the installation is finished.

Download Minecraft server

Set up the directory where you want to run the server. This is not very important. You can do everything in your Home folder, if you feel it is the most convenient for you.

 mkdir ~/Minecraft cd ~/Minecraft 

How to store your own Minecraft server Picture 2

On the computer you are using, download the Mincraft server. Find the download link for the latest version of Minecraft server and copy it.

Go back to the terminal server and start typing the line below:

 wget -O minecraft_server.jar 

How to store your own Minecraft server Picture 3

Paste the address you copied above here. Everything will look like this:

 wget -O minecraft_server.jar https://launcher.mojang.com/v1/objects/3737db93722a9e39eeada7c27e7aca28b144ffa7/server.jar 

You will need to accept the Minecraft license to run the server. You do that by creating a file in the same directory as the server. The server will read the file and see that you have accepted the license.

 echo "eula=true" > eula.txt 

Write a startup script

In fact, you don't need a startup script, but it's easier to combine everything into a script, then you just need to run a command to start your server. Start creating a new file by opening it in the text editor. If you are not familiar with Linux text editors, use Nano.

 nano start-server.sh 

Then, enter the following code in the script:

 #! /bin/bash /usr/bin/screen -S $1 /usr/bin/java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui 

Save the script and exit the text editor. You also need to make your script run before running it.

 chmod + x start-server.sh 

Start the server

Finally, your server is ready to boot. Give the server a name so you can easily identify it when you run the script. (The main server name is the 'New-Server' section).

 ./start-server.sh "New-Server" 

How to store your own Minecraft server Picture 4

The server will start and you can connect by entering your server IP address into the Minecraft client. Remember to keep the server up to date by replacing the server's .jar file with new releases.

If you plan to make your server public, then you should learn tips about hosting VPS to better secure it. Activating a firewall is also a consideration. Ubuntu has a great option in the form of UFW.

Good luck!

See more:

  1. Instructions for setting up and managing FTP Server on Windows 10
  2. Instructions for setting up individual FTP Server with FileZilla
  3. How to build a game server on Linux
4 ★ | 2 Vote

May be interested

  • How to build a game server on LinuxHow to build a game server on Linux
    current games can not only connect to the server but also run that server. learn about everything you need to build a linux server game through the following article.
  • The most complete command of MineCraft, MineCraft cheat codeThe most complete command of MineCraft, MineCraft cheat code
    thanks to the basic minecraft commands, players can easily overcome challenges in the game. please memorize these minecraft cheat codes before playing minecraft.
  • How to Copy and Paste in MinecraftHow to Copy and Paste in Minecraft
    today's tipsmake will show you different ways to copy and paste in minecraft. as long as you are hosting or are an operator on a private minecraft server, and have the worldedit plugin installed, you will be able to copy and paste builds in one or all worlds. if you don't have server or worldedit access, the '/clone' command will help you copy and paste projects from one location to another. besides, you can also copy and paste text from the chat box or chat frame.
  • TOP the most recommended constructions in Minecraft PETOP the most recommended constructions in Minecraft PE
    with the characteristic of the sandbox game genre, minecraft players have every possibility to create almost anything they want in the game. however, on minecraft pocket edition, rebuilding is quite tedious and difficult due to limited control buttons on small mobile screens.
  • TOP the best seeds in Minecraft 1.18 PETOP the best seeds in Minecraft 1.18 PE
    the most visually impressive feature that minecraft 1.18 brings is the new biomes. the mountains also become much more majestic with a height of 256 blocks.
  • How to get Trident in Minecraft, how to use Trident in MinecraftHow to get Trident in Minecraft, how to use Trident in Minecraft
    minecraft tridents are quite easy to come by, and this weapon will bring brand new ways of fighting and entertainment in minecraft.
  • How to Increase RAM for MinecraftHow to Increase RAM for Minecraft
    this article shows you how to increase ram memory for minecraft game to help fix some memory-related errors. if you are using a personal version of minecraft, you can easily increase ram using launcher from version 1.6 to 2.0.x. check your launcher version number in the lower left corner of the launcher window. if you intend to change the server's ram, you need to create a file that helps run the minecraft game with more memory. however, it's best not to increase more than half to two-thirds of your computer's total ram for minecraft.
  • Minecraft: New updated version details 1.20Minecraft: New updated version details 1.20
    as we've all predicted, minecraft 1.20 will be the next big minecraft update in 2023. although all the features and updates have been announced, it still doesn't have its own title.
  • What is Minecraft? Overview of Minecraft gamesWhat is Minecraft? Overview of Minecraft games
    what is minecraft? overview of minecraft games. minecraft is a video game released and developed by mojang (now under microsoft). the creative and constructive capabilities of minecraft allow you to interact with 3d blocks to arrange them
  • Minecraft Legends: Information, release date, gameplay Minecraft LegendsMinecraft Legends: Information, release date, gameplay Minecraft Legends
    minecraft legends is a game in the independent minecraft universe that will be released in 2023. the plot of minecraft legends will tell about overworld minecraft and all that is related to this world.