After you do that, it is advisable obtain your server JAR file.
You can use this command to download the vanilla server JAR replacing the Model with the model you want
Instance: curl -o server.jar https://serverjars.com/api/fetchJar/vanilla/1.18.1
If you need to use Paper (beneficial), you can run this command replacing the Version with the model you want
Example: curl -o server.jar https://serverjars.com/api/fetchJar/paper/1.18.1
Step 3 - Starting your server
After you may have created your Minecraft server folder and have your server JAR file in it, you may run the next command
This now should create a new display, after that you must finally start your server. You can run this command replacing the to how much RAM you need to offer to your Minecraft server in MB.
You can even change the server.jar with your actual server JAR that you have in your Minecraft server folder.
Example: java -Xms512M -Xmx4096M -jar server.jar
Starting your server for the first time will fail, this is because you want to simply accept the Mojang EULA within the eula.txt file.
To try this, run:
And alter the eula=false half to eula=true should you accept their EULA.
Step 3.1 - Becoming a member of your server
It is easy to affix your Minecraft server! Games can use your server's IP deal with to hitch your server.