games:minecraft:server:run
This CLI command starts a Minecraft server using Java with a maximum and initial memory allocation of 1 GB.
$ java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
try on your machine
This command launches the Minecraft server application using Java runtime. Here's a breakdown of each component:
java
: This is the command that runs the Java Virtual Machine (JVM), which is responsible for executing Java programs.-Xmx1024M
: This flag sets the maximum memory allocation for the JVM. In this case, it allocates 1024 megabytes (or 1 gigabyte) of memory.-Xms1024M
: This flag sets the initial memory allocation for the JVM. Again, it allocates 1024 megabytes (or 1 gigabyte) of memory.-jar minecraft_server.jar
: This tells the Java runtime to launch theminecraft_server.jar
file. The.jar
extension indicates that it is a Java archive file containing the Minecraft server application.nogui
: This parameter instructs the server to run in command-line mode without a graphical user interface (GUI). This is useful when running the server on a headless machine or remotely via SSH.
Overall, this command launches the Minecraft server with 1 gigabyte of memory allocation, without a GUI.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.