How to create a simple Minecraft server
In this short article I will tell you how to create and run the simplest minecraft server without mods, plugins without anything, just a server to play with friends in regular minecraft. It's quite simple, but many players do not know how to work with the official Minecraft server, so let's figure it out.
To begin with, there are quite a few different minecraft servers, but in this article we will use the official server from Mojang. We will create a server on version 1.12.2, but servers for other versions are created in the same way.
How to create and run an official server:
To get started, download the server itself: 1.19.3, 1.18.2, 1.17.x, 1.16.x, 1.15.x, 1.14.x, 1.13.2, 1.12.2, 1.11.2, 1.10.2, 1.9.4, 1.8.9, 1.7.10.
(official page with the latest version, all available versions are here)
0) You must have Java installed
1) Create a folder anywhere on your PC, put the downloaded file inside.
2) Create a text file called start
Open this file with notepad or any other text editor, put the following line inside.
java -Xmx1024M -Xms1024M -jar minecraft_server.1.12.2.jar nogui
Attention, the name of the server file is indicated in the line, in this case, minecraft_server.1.12.2.jar, if you renamed it, or you have a different version, change the name to the correct one.
Xmx1024M - the maximum value of RAM that the server can consume
Xms1024M - the amount of RAM that the server uses immediately at startup.
nogui - disables the display of a more pleasant server window in which you can see the list of players and the server load graph, this window can heavily load the server in certain cases, I recommend not using it. If you want to see the server window like this, just remove nogui from the line.