games:minecraft:create_a_minecraft_server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
games:minecraft:create_a_minecraft_server [2021/07/08 12:10] – peter | games:minecraft:create_a_minecraft_server [2021/07/08 19:48] (current) – [References] peter | ||
---|---|---|---|
Line 75: | Line 75: | ||
==== Obtain the link for the Minecraft download ==== | ==== Obtain the link for the Minecraft download ==== | ||
- | Visit the official Minecraft site, https:// | + | Visit the official Minecraft site, https:// |
---- | ---- | ||
Line 119: | Line 119: | ||
* To shut down your server, enter the command **stop**. | * To shut down your server, enter the command **stop**. | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | java -jar server.jar --nogui | ||
+ | </ | ||
+ | |||
+ | * But this prevents a GUI for typing commands, so only use this option is that is not a concern. | ||
+ | |||
+ | </ | ||
+ | |||
---- | ---- | ||
Line 136: | Line 146: | ||
---- | ---- | ||
+ | ===== Create a Server startup script ===== | ||
+ | |||
+ | Create / | ||
+ | |||
+ | <file bash / | ||
+ | [Unit] | ||
+ | Description=Minecraft server | ||
+ | Documentation= | ||
+ | Wants=network.target | ||
+ | After=network.target | ||
+ | |||
+ | [Service] | ||
+ | WorkingDirectory=/ | ||
+ | User=minecraft | ||
+ | Group=minecraft | ||
+ | Type=forking | ||
+ | # Run it as a non-root user in a specific directory | ||
+ | |||
+ | ExecStart=/ | ||
+ | |||
+ | # Send " | ||
+ | ExecStop=/ | ||
+ | # Wait for the PID to die - otherwise it is killed after this command finishes! | ||
+ | ExecStop=/ | ||
+ | # Note that absolute paths for all executables are required! | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Run the Startup Script ===== | ||
+ | |||
+ | <code bash> | ||
+ | systemctl daemon-reload | ||
+ | systemctl start minecraft | ||
+ | </ | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | http:// |
games/minecraft/create_a_minecraft_server.1625746227.txt.gz · Last modified: 2021/07/08 12:10 by peter