How To Create A Minecraft Server On A VPS
After you do that, it's good to obtain your server JAR file.
You can use this command to obtain the vanilla server JAR changing the Version with the version you need
Example: curl -o server.jar https://serverjars.com/api/fetchJar/vanilla/1.18.1
If you need to use Paper (recommended), you can run this command replacing the Model with the model you want
Instance: curl -o server.jar https://serverjars.com/api/fetchJar/paper/1.18.1
Step 3 - Beginning your server
After you have created your Minecraft server folder and have your server JAR file in it, you may run the next command
This now ought to create a new screen, after that that you must lastly begin your server. Persiancat's blog You'll be able to run this command changing the to how a lot RAM you need to give to your Minecraft server in MB.
You can even change the server.jar with your actual server JAR that you've in your Minecraft server folder. Cats
Example: java -Xms512M -Xmx4096M -jar server.jar
Beginning your server for the primary time will fail, that is because 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 should you settle for their EULA.
Step 3.1 - Becoming a member of your server
It is simple to hitch your Minecraft server! You should utilize your server's IP address to hitch your server.