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.