How to install a MineCraft server on a VPS server on a hosting Hostetski.ru

How to install your MineCraft server on hosting Hostetski.ru


First we need to install all the necessary software.


Installing Java to make your server work:


1. apt-get update

2. apt-get upgrade

3. apt-get install default-jre


Installing the Screen utility so that your server does not shut down after exiting the console:



1. apt-get install screen



Installing the htop monitoring utility:



1. apt-get install htop

2. htop command to enter monitoring

3. Using the Ctrl + C keyboard shortcut, exit monitoring.


We have installed all the necessary software and now our task is to install the server itself and run it.



The first step is to create a directory (folder) where our server and its files will be stored:



Command to create a directory (folder): mkdir /root/server



We have created a folder for our server now we need to create a Screen:



Command to create a Screen: screen -S server

The command, if your server freezes and does not respond to commands, we write: screen -X -S server kill

To exit Screen, it is necessary to press a key combination: Ctrl + A + D

To enter the Screen after exiting, we prescribe: screen -r -d server



We have created a Screen and now we need to get to the server folder:



Command to get to the server folder: cd /root/server



We went to the server folder, then we need to download the core of our server and rename it to server.

List of cores that you can download:



Vanilla: https://getbukkit.org/download/vanilla
CraftBukkit: https://getbukkit.org/download/craftbukkit
Spigot: https://getbukkit.org/download/spigot
Outdated versions of Paper:https://papermc.io/legacy
Latest versions of Paper:https://papermc.io/downloads





We downloaded our kernel and now we need to move it to this folder using any SFTP client, for exampleFileZilla, WinSCP.



We have uploaded our kernel to the server and now we need to create a launcher file for the server.



You can download it here: download here



In it we will see the parameter -Xmx1024M, we need to replace it with the amount of RAM that is available to you or that you want to allocate to the server.



Next, we upload this file to the server.


We have downloaded all the files and now we will start launching and configuring.



In our Screen, we prescribe a command to run: sh start.sh



We see the loading of our server, now we need to download and edit the file: server.properties


When you have received the order and opened all the ports you need, you must configure it correctly in server.properties


Example of a letter:



Order successfully activated

IP address (shared): 75.119.135.218
Root password: (password)

Port card:
75.119.135.218:10577 → 22 (SSH)
75.119.135.218:10578 → 25567(Server port)

To route additional ports, write to support: [email protected]


There is a line in server.properties:


"server-port: 25565"


We change it to our port:


"server-port: 25567"



Also, so that your server can be accessed from a pirate (without a license) in the server.properties file, we change the value:


"online-mode: true"

on the value:


"online-mode: false"



After that, we save and upload the file to the server.



Stopping the server with the command: stop



The server has stopped and we have to start it with the command: sh start.sh



Ready! Your server has been successfully launched and now you can log in to it with the same version as your kernel, for example 1.12.2.
To connect to the server, use: 75.119.135.218:10578



Why port 10578, although we installed 25567. This is due to the fact that we have migrated port 25567 to port 10578.