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 recreation. It needs to be hosted on a server for those who want to play in multiplayer.


You can rent a pre-constructed Minecraft server or you can set it up yourself on a VPS or on a devoted server. This can reduce the associated fee and provide you with full management over your game occasion.


This tutorial explains the right way to launch a Minecraft Java Version server on an OVHcloud VPS and test its connectivity.


This guide will show you the way to use a number of OVHcloud solutions with external instruments, and can describe the actions to be carried out in a selected context. ou might have to adapt the directions based on your scenario.


If you encounter any difficulties performing these actions, please contact a specialised service provider and/or discuss the difficulty with our neighborhood. You will discover more data within the Go further section of this information.


Necessities


- A Digital Private Server in your OVHcloud account
- A GNU/Linux distribution put in on the server
- Administrative access (root) via SSH to your server
- A basic understanding of GNU/Linux administration


Instructions


This tutorial is based on version "1.17" of Minecraft Java Edition and OpenJDK version "16.0.1".


Step 1: Put together the server


Step one is to set up your VPS for a Minecraft installation.
It's endorsed to order a brand new VPS or reinstall an present one out of your OVHcloud Management Panel, using the latest available release of Ubuntu or Debian. Please seek advice from our Getting started guide if obligatory.


Once the OS is put in, connect with your VPS with SSH as described in the Getting began guide.


First replace the packages to their newest variations:


Use the following command to ensure all required packages are put in.


Set up the Java package:


To keep away from security vulnerabilities in your system, create a user named "minecraft" who will perform the server actions:


Merely press the Enter key to skip filling in the same old account info.


The person is now created. Observe that no password was specified for this person. That is regular because the account is only accessible when already linked via SSH with your personal consumer account.


Change to the brand new user:


The next commands need to be executed by the person "minecraft".


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


Step 2: Set up your Vanilla Minecraft server


A "Vanilla" server is an occasion with none add-ons or plugins. You will experience the game the way it was created by the developers.


First you have to to repeat/paste the download hyperlink for the server software program. On the official Minecraft web site, proper-click on on the download link and select Copy Hyperlink Location from the context menu.


Again in your command line terminal, be certain that you're nonetheless within the server folder and use wget to obtain the file. Exchange obtain_link with the precise URL from your clipboard.


Earlier than launching the server, you'll want to comply with the top Person License Settlement. To realize this, enter the next command.


A file named eula.txt is now located at the basis degree of your server, containing the line eula=true. It will inform the software that you settle for the Minecraft EULA. We invite you to evaluate the phrases and situations on the Minecraft web site. Minecraft


Your server can now be started.


Throughout step 1, we installed the display screen package deal which permits opening a number of classes of the terminal (shell). We are going to begin Minecraft in a brand new session that may run in the background. Using screen will be very useful because it gives you the possibility to launch a number of Minecraft servers simultaneously.


First, we'll create a brand new shell named minecraft1:


The lively terminal window will switch to a brand new shell session. You can create multiple shells; record them with this command:


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


To switch from one shell to another, use this command:


It's also possible to press Ctrl, then a, then n on your keyboard.


In the previously created minecraft1 shell, launch the Minecraft server with the next command. (Use ls to verify the filename in case it differs.)


To shut down your server, enter the command stop.


Step 3: Connect to the server


Your server instance is now useful. To play the game, download the Minecraft client from the official Minecraft website.


Set up and launch the shopper for your working system and check in.


On the next screen, enter the server title in the sector Server Title, and the IP tackle of the server in the sector Server Tackle.


By default, no port must be specified.


Your Vanilla Minecraft server is now put in in your VPS.


Please notice that this installation guide must also work on an OVHcloud devoted server or a Public Cloud. occasion. With these providers, you should have the benefit of better stability for the reason that hardware is devoted.


Go additional


For add-ons, mods and to personalise your Minecraft expertise, please consult this official documentation: https://help.mojang.com/.


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


Did you find this information helpful?


Please be at liberty to provide any options in order to improve this documentation.


Whether or not your feedback is about pictures, content, or structure, please share it, in order that we will enhance it collectively.


Your assist requests won't be processed by way of this type. To do this, please use the "Create a ticket" kind.


Thanks. Your suggestions has been received.