From eb1238087bdf6fd5961414bcca68221a3f9e1fae Mon Sep 17 00:00:00 2001 From: zleyyij Date: Sun, 23 Jul 2023 08:49:03 -0600 Subject: [PATCH] vault backup: 2023-07-23 08:49:03 --- Setting up a Minecraft server.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Setting up a Minecraft server.md b/Setting up a Minecraft server.md index b6b49ce..b3292ce 100644 --- a/Setting up a Minecraft server.md +++ b/Setting up a Minecraft server.md @@ -38,6 +38,8 @@ cd /opt/minecraft # Go to https://www.minecraft.net/en-us/download/server, # and copy the link for "Download server.[version].jar: wget https://piston-data.mojang.com/v1/objects/84194a2f286ef7c14ed7ce0090dba59902951553/server.jar +# If you get permisison denied errors, the filesystem permissions for /opt/minecraft are +# not set correctly, check those with `ls -lah` and learn stuff ``` # Starting the server @@ -47,7 +49,7 @@ wget https://piston-data.mojang.com/v1/objects/84194a2f286ef7c14ed7ce0090dba5990 # -Xms is the amount of memory your server will be allocated when it starts # these two take values in format of NUMBERUNIT, so 3G would be 3 gigabytes, # 512M would be 512 megabytes -java -jar -Xmx4G +java -jar -XmX4g -Xms512M ``` This enables minecraft to run in the background, restart if it crashes, etc etc.