vault backup: 2023-07-23 08:49:03
This commit is contained in:
parent
43f63af8a9
commit
eb1238087b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user