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 popular sandbox video sport. It must be hosted on a server for those who wish to play in multiplayer.


You can rent a pre-constructed Minecraft server or you possibly can set it up yourself on a VPS or on a dedicated server. This will cut back the price and offer you full management over your recreation instance.


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


This guide will present you the way to make use of a number of OVHcloud solutions with external instruments, and will describe the actions to be carried out in a particular context. ou may need to adapt the directions in accordance with your scenario.


If you encounter any difficulties performing these actions, please contact a specialised service supplier and/or focus on the issue with our neighborhood. You'll find more data within the Go additional part of this information.


Necessities


- A Digital 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 basic 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: Prepare the server


Step one is to set up your VPS for a Minecraft set up.
It is strongly recommended to order a new VPS or reinstall an current one from your OVHcloud Control Panel, using the latest accessible launch of Ubuntu or Debian. Please refer to our Getting started information if vital.


Once the OS is installed, hook up with your VPS with SSH as described within the Getting began guide.


First replace the packages to their latest variations:


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


Set up the Java bundle:


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


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


The consumer is now created. Notice that no password was specified for this user. This is normal because the account is barely accessible when already related through SSH with your personal person account.


Change to the new user:


The next commands have 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 instance with none add-ons or plugins. You will experience the sport the way in which it was created by the developers.


First you will have to copy/paste the download hyperlink for the server software program. On the official Minecraft web site, proper-click on on the obtain hyperlink and choose Copy Link Location from the context menu.


Again in your command line terminal, be sure you are still in the server folder and use wget to download the file. Change obtain_link with the precise URL from your clipboard.


Before launching the server, it is advisable conform to the end User License Agreement. To realize this, enter the next command.


A file named eula.txt is now located at the basis stage of your server, containing the line eula=true.  offtopic hut  will tell the software that you simply settle for the Minecraft EULA. We invite you to review the phrases and circumstances on the Minecraft web site.


Your server can now be started.


Throughout step 1, we put in the display screen bundle which permits opening a number of classes of the terminal (shell). We'll start Minecraft in a brand new session that can run within the background. Using screen may be very handy since it offers you the likelihood to launch a number of Minecraft servers simultaneously.


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


The lively terminal window will change to a new shell session. You may 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 in your keyboard.


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


You may as well press Ctrl, then a, then n on your keyboard.


In the beforehand 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: Hook up with the server


Your server instance is now functional. To play the sport, obtain the Minecraft consumer from the official Minecraft website.


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


On the following display, enter the server identify in the sector Server Identify, and the IP handle of the server in the sphere Server Handle.


By default, no port needs to be specified.


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


Please note that this installation guide must also work on an OVHcloud dedicated server or a Public Cloud. instance. With these companies, you should have the benefit of higher stability for the reason that hardware is dedicated.


Go further


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


Be a part of our neighborhood of users on https://community.ovh.com/en/.


Did you discover this guide helpful?


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


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


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


Thanks. Your feedback has been acquired.