Tutorial - How To Create A Minecraft Server On A VPS

· 4 min read
Tutorial - How To Create A Minecraft Server On A VPS

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


You'll be able to rent a pre-constructed Minecraft server or you may set it up your self on a VPS or on a dedicated server. This will cut back the price and provide you with full control over your recreation occasion.


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


This information will show you the way to make use of a number of OVHcloud options with exterior instruments, and will describe the actions to be carried out in a particular context. ou may need to adapt the directions in line with your scenario.


Should you encounter any difficulties performing these actions, please contact a specialised service supplier and/or talk about the problem with our group. You can find extra info within the Go further part of this information.


Necessities


- A Digital Personal 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


Directions


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


Step 1: Prepare the server


The first step is to arrange your VPS for a Minecraft set up.
It is recommended to order a brand new VPS or reinstall an existing one from your OVHcloud Control Panel, utilizing the most recent accessible release of Ubuntu or Debian. Please seek advice from our Getting began information if essential.


Once the OS is installed, connect to your VPS with SSH as described in the Getting began information.


First replace the packages to their latest versions:


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


Set up the Java bundle:


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


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


The person is now created. Notice that no password was specified for this person. That is regular as a result of the account is barely accessible when already related through SSH with your personal consumer account.


Change to the new consumer:


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


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


Step 2: Install your Vanilla Minecraft server


A "Vanilla" server is an occasion with none add-ons or plugins. You'll experience the sport the way it was created by the builders.


First you will have to copy/paste the download link for the server software program. On  MINECRAFT , proper-click on on the download hyperlink and select Copy Link Location from the context menu.


Back in your command line terminal, make certain you might be still in the server folder and use wget to download the file. Substitute download_link with the actual URL from your clipboard.


Before launching the server, you need to conform to the top Person License Settlement. To realize this, enter the following command.


A file named eula.txt is now located at the foundation level of your server, containing the line eula=true. This can tell the software that you accept the Minecraft EULA. We invite you to evaluate the phrases and conditions on the Minecraft webpage.


Your server can now be started.


During step 1, we installed the display package which allows opening multiple sessions of the terminal (shell). We'll start Minecraft in a new session that can run within the background. Utilizing display can be very useful since it offers you the chance to launch a number of Minecraft servers concurrently.


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


The energetic terminal window will change to a brand new shell session. You'll be able to create multiple shells; record them with this command:


To detach from the shell (and keep it operating), press Ctrl, then a, then d in 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 previously 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 cease.


Step 3: Connect with the server


Your server instance is now practical. To play the game, download the Minecraft shopper from the official Minecraft web site.


Set up and launch the consumer to your working system and sign up.


On the following screen, enter the server name in the field Server Name, and the IP tackle of the server in the sphere Server Handle.


By default, no port must be specified.


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


Please observe that this set up guide also needs to work on an OVHcloud dedicated server or a Public Cloud. occasion. With those companies, you will have the advantage of better stability for the reason that hardware is devoted.


Go additional


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


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


Did you discover this guide helpful?


Please be at liberty to offer any recommendations so as to improve this documentation.


Whether or not your suggestions is about photographs, content material, or construction, please share it, so that we are able to improve it collectively.


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


Thank you. Your feedback has been obtained.