Tutorial - How To Create A Minecraft Server On A VPS

Minecraft is a well-liked sandbox video game. It must be hosted on a server should you want to play in multiplayer.


You''ll be able to rent a pre-built Minecraft server or you may set it up your self on a VPS or on a devoted server. This can scale back the cost and give you full management over your game instance.


This tutorial explains how you can launch a Minecraft Java Edition server on an OVHcloud VPS and test its connectivity.


This guide will show you ways to use a number of OVHcloud options with external tools, and can describe the actions to be carried out in a particular context. ou could have to adapt the directions 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. Yow will discover extra information within the Go additional part of this information.


Necessities


- A Virtual Personal Server in your OVHcloud account
- A GNU/Linux distribution put in on the server
- Administrative entry (root) by way of SSH to your server
- A fundamental understanding of GNU/Linux administration


Directions


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


Step 1: Put together the server


Step one is to set up your VPS for a Minecraft set up.
It is suggested to order a brand new VPS or reinstall an existing one out of your OVHcloud Management Panel, utilizing the most recent obtainable release of Ubuntu or Debian. Please consult with our Getting started guide if vital.


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


First update the packages to their newest variations:


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


Install the Java bundle:


To avoid safety vulnerabilities in your system, create a person named "minecraft" who will carry out the server actions:


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


The consumer is now created. Observe that no password was specified for this person. That is normal because the account is just accessible when already connected through SSH with your own user account.


Swap to the brand new person:


The following commands should be executed by the user "minecraft".


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


Step 2: Install your Vanilla Minecraft server


A "Vanilla" server is an instance with none add-ons or plugins. You''ll expertise the game the best way it was created by the developers.


First you have to to copy/paste the obtain link for the server software program. On the official Minecraft website, right-click on on the obtain link and select Copy Link Location from the context menu.


Again in your command line terminal, make sure you''re nonetheless within the server folder and use wget to download the file. Replace obtain_hyperlink with the precise URL out of your clipboard.


Before launching the server, you have to conform to the top Consumer License Agreement. To achieve this, enter the next command.


A file named eula.txt is now situated at the basis degree of your server, containing the road eula=true. This can inform the software that you accept the Minecraft EULA. We invite you to evaluation the terms and conditions on the Minecraft web site.


Your server can now be started.


During step 1, we put in the display screen package which allows opening a number of classes of the terminal (shell). We are going to begin Minecraft in a new session that may run in the background. Utilizing screen could be very handy because it gives you the chance to launch multiple Minecraft servers simultaneously.


First, we will create a new shell named minecraft1:


The active terminal window will swap to a new shell session. You possibly can create a number of shells; checklist them with this command:


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


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


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


Within 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 cease.


Step 3: Connect with the server


Your server occasion is now purposeful. To play the game, obtain the Minecraft client from the official Minecraft website.


Set up and launch the client to your working system and sign in.


On the next screen, enter the server title in the sector Server Name, and the IP tackle of the server in the field Server Address.


By default, no port needs to be specified.


Your Vanilla Minecraft server is now installed on your VPS.


Please be aware that this installation information also needs to work on an OVHcloud devoted server or a Public Cloud. instance. Pubgqa With those services, you will have the advantage of higher stability because the hardware is dedicated.


Go further


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


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


Did you find this information useful?


Please be happy to present any suggestions so as to enhance this documentation.


Whether your feedback is about photographs, content material, or construction, please share it, in order that we can improve it collectively.


Your support requests is not going to be processed through this kind. To do that, please use the "Create a ticket" form.


Thanks. Your suggestions has been received.