All Links at the top and some reused below
Server Download - https://www.minecraft.net/en-us/downl...
Linked Tutorial from Server Download - https://minecraft.fandom.com/wiki/Tut...
Github decent starting point - https://github.com/fraserg26/Minecraf...
Updating Ubuntu - https://www.cyberciti.biz/faq/upgrade...
Make yourself OP - https://www.beastnode.com/portal/know...
OP Levels - https://nodecraft.com/support/games/m...
Server Properties - https://minecraft.fandom.com/wiki/Ser...
Swap - I forgot to cover this :( Default has no swap space, so do not run out of ram or you are toast - https://askubuntu.com/questions/10391...
Looking at system error with journlctl - Also did not cover since we did not have that type of issue - https://linuxhint.com/journalctl-tail...
Check out this minecraft channel as well - / @tomisgoodatmc5716
Sar - https://www.tothenew.com/blog/install...
Update the server
https://www.cyberciti.biz/faq/upgrade...
java --version
Install needed version - from server java page link and go down to linux
sudo apt-get update
sudo apt-get upgrade
Install sysstat to enable sar
sudo apt-get install sysstat
sudo vi /etc/default/sysstat
General Guide, but not following
https://github.com/fraserg26/Minecraf...
Just going to use ec2-user
Need to get the latest server.jar
Nano sucks :)
Just use sudo not su
No conspy
Download Server
https://www.minecraft.net/en-us/downl...
Altered from fraserg26 - Setup service
vi /etc/systemd/system/minecraft-server.service
[Unit]
Description=Minecraft Server
After=getty.service
[Service]
WorkingDirectory=/home/ubuntu
User=ubuntu
Group=ubuntu
Restart=on-failure
RestartSec=20 5
ExecStart=/usr/bin/java -Xms1024M -Xmx1024M -jar server.jar nogui
StandardInput=tty-force
TTYVHangup=yes
TTYPath=/dev/tty20
TTYReset=yes
Type=simple
RemainAfterExit=false
[Install]
WantedBy=multi-user.target
Alias=minecraft.service
sudo systemctl enable minecraft-server.service
Ports
install netstat
A channel you should check out - / @tomisgoodatmc5716