How To Create A Minecraft Server On A VPS
After you try this, you should obtain your server JAR file.
You should use this command to download the vanilla server JAR replacing the Version with the model you want
Example: curl -o server.jar https://serverjars.com/api/fetchJar/vanilla/1.18.1
If you would like to use Paper (recommended), you can run this command replacing the Model with the model you need
Instance: curl -o server.jar https://serverjars.com/api/fetchJar/paper/1.18.1
Step three - Starting your server
After you could have created your Minecraft server folder and have your server JAR file in it, you can run the following command
This now should create a new screen, after that you should finally begin your server. Minecraft realms servers You may run this command changing the to how a lot RAM you need to provide to your Minecraft server in MB.
You can even change the server.jar along with your precise server JAR that you have in your Minecraft server folder.
Example: java -Xms512M -Xmx4096M -jar server.jar
Beginning your server for the primary time will fail, that is since you need to accept the Mojang EULA in the eula.txt file.
To do this, run:
And alter the eula=false part to eula=true when you accept their EULA.
Step 3.1 - Joining your server
It is simple to affix your Minecraft server! You can use your server's IP deal with to affix your server.