Tutorial - How To Create A Minecraft Server On A VPS

Tutorial - How To Create A Minecraft Server On A VPS

Minecraft is a popular sandbox video sport. It must be hosted on a server in case you want to play in multiplayer.


You may rent a pre-built Minecraft server or you can set it up yourself on a VPS or on a devoted server. This may reduce the cost and offer you full control over your game occasion.


This tutorial explains easy methods to launch a Minecraft Java Edition server on an OVHcloud VPS and check its connectivity.


This information will present you ways to make use of one or more OVHcloud options with external tools, and will describe the actions to be carried out in a specific context. ou might must adapt the instructions in accordance with your state of affairs.


In the event you encounter any difficulties performing these actions, please contact a specialised service provider and/or focus on the difficulty with our group. You can find extra data within the Go further part of this guide.


Necessities


- A Digital Private Server in your OVHcloud account
- A GNU/Linux distribution installed on the server
- Administrative entry (root) through SSH to your server
- A primary understanding of GNU/Linux administration


Instructions


This tutorial is based on model "1.17" of Minecraft Java Version and OpenJDK model "16.0.1".


Step 1: Prepare the server


The first step is to set up your VPS for a Minecraft installation.
It is strongly recommended to order a brand new VPS or reinstall an existing one out of your OVHcloud Management Panel, utilizing the most recent available release of Ubuntu or Debian. Please consult with our Getting started guide if obligatory.


As soon as the OS is installed, hook up with your VPS with SSH as described within the Getting started information.


First update the packages to their newest variations:


Use the next command to ensure all required packages are installed.


Install the Java package deal:


To keep away from safety vulnerabilities on your system, create a person named "minecraft" who will perform the server actions:


Simply press the Enter key to skip filling in the standard account information.


The consumer is now created. Word that no password was specified for this person. That is regular as a result of the account is barely accessible when already linked via SSH with your own user account.


Change to the new consumer:


The next commands have to be executed by the consumer "minecraft".


To finish the setup preparations, create a folder named server.


Step 2: Install your Vanilla Minecraft server


A "Vanilla" server is an instance without any add-ons or plugins. You will expertise the sport the way it was created by the developers.


First you will have to repeat/paste the obtain hyperlink for the server software. On the official Minecraft webpage, right-click on the download hyperlink and choose Copy Link Location from the context menu.


Again in your command line terminal, make sure you might be nonetheless within the server folder and use wget to obtain the file. Substitute download_hyperlink with the precise URL out of your clipboard.


Before launching the server, that you must conform to the top Consumer License Agreement. To realize this, enter the next command.


A file named eula.txt is now located at the basis degree of your server, containing the road eula=true. This can inform the software program that you simply settle for the Minecraft EULA. We invite you to overview the phrases and circumstances on the Minecraft website.


Your server can now be started.


Throughout step 1, we put in the screen package which permits opening a number of classes of the terminal (shell). We'll start Minecraft in a new session that may run within the background. Utilizing display will be very helpful because it offers you the likelihood to launch multiple Minecraft servers simultaneously.


First, we are going to create a new shell named minecraft1:


The lively terminal window will swap to a brand new shell session. You'll be able to create a number of shells; listing them with this command:


To detach from the shell (and keep it working), press Ctrl, then a, then d on your keyboard.


To modify from one shell to a different, use this command:


You may also press Ctrl, then a, then n in your keyboard.


Within the beforehand created minecraft1 shell, launch the Minecraft server with the following command. (Use ls to confirm the filename in case it differs.)


To shut down your server, enter the command stop.


Step 3: Hook up with the server


Your server instance is now useful. To play  Strongcraft , obtain the Minecraft shopper from the official Minecraft web site.


Set up and launch the consumer on your working system and register.


On the next display, enter the server title in the field Server Title, and the IP handle of the server in the field Server Handle.


By default, no port needs to be specified.


Your Vanilla Minecraft server is now installed in your VPS.


Please notice that this set up information also needs to work on an OVHcloud dedicated server or a Public Cloud. instance. With these companies, you'll have the benefit of better stability for the reason that hardware is dedicated.


Go further


For add-ons, mods and to personalise your Minecraft experience, please seek the advice of this official documentation: https://assist.mojang.com/.


Join our group of customers on https://neighborhood.ovh.com/en/.


Did you discover this guide helpful?


Please be happy to provide any ideas so as to enhance this documentation.


Whether your feedback is about images, content material, or structure, please share it, so that we are able to improve it collectively.


Your assist requests will not be processed through this type. To do this, please use the "Create a ticket" kind.


Thank you. Your feedback has been obtained.