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


You possibly can rent a pre-constructed Minecraft server or you possibly can set it up yourself on a VPS or on a devoted server. This can scale back the price and provide you with full management over your sport instance.


This tutorial explains learn how to launch a Minecraft Java Version server on an OVHcloud VPS and test its connectivity.


This information will show you ways to use one or more OVHcloud solutions with exterior tools, and will describe the actions to be carried out in a particular context. ou could need to adapt the directions according to your state of affairs.


In case you encounter any difficulties performing these actions, please contact a specialised service provider and/or talk about the problem with our neighborhood. You'll find more data in the Go further part of this information.


Requirements


- A Virtual Personal Server in your OVHcloud account
- A GNU/Linux distribution installed on the server
- Administrative entry (root) by way of 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 set up your VPS for a Minecraft set up.
It is strongly recommended to order a brand new VPS or reinstall an present one out of your OVHcloud Control Panel, utilizing the newest obtainable launch of Ubuntu or Debian. Please seek advice from our Getting started information if necessary.


As soon as the OS is put in, connect with your VPS with SSH as described within the Getting started information.


First update the packages to their latest variations:


Use the next command to make sure all required packages are installed.


Install the Java bundle:


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


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


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


Change to the new person:


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


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


Step 2: Set up your Vanilla Minecraft server


A "Vanilla" server is an instance without any add-ons or plugins. You'll experience the game the way in which it was created by the builders.


First you will need to copy/paste the download hyperlink for the server software. On the official Minecraft web site, proper-click on the obtain link and select Copy Hyperlink Location from the context menu. Cubepack88


Again in your command line terminal, be certain that you might be nonetheless within the server folder and use wget to download the file. Change download_link with the actual URL out of your clipboard.


Earlier than launching the server, you need to comply with the top User License Settlement. To achieve this, enter the next command.


A file named eula.txt is now situated at the root level of your server, containing the road eula=true. This may tell the software that you just accept the Minecraft EULA. We invite you to overview the phrases and situations on the Minecraft webpage.


Your server can now be started.


During step 1, we installed the display package deal which allows opening multiple classes of the terminal (shell). We will begin Minecraft in a new session that may run within the background. Utilizing display can be very handy because it provides you the likelihood to launch a number of Minecraft servers simultaneously.


First, we will create a brand new shell named minecraft1:


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


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


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


You can even 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 to the server


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


Install and launch the consumer to your operating system and register.


On the subsequent display screen, enter the server title in the sector Server Identify, and the IP address of the server in the sphere Server Tackle.


By default, no port needs to be specified.


Your Vanilla Minecraft server is now installed on your VPS.


Please notice that this installation guide should also work on an OVHcloud devoted server or a Public Cloud. instance. With those services, you will have the advantage of higher stability since the hardware is dedicated.


Go additional


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


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


Did you discover this guide helpful?


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


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


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


Thank you. Your feedback has been acquired.