Creating a MineCraft Java Server In Amazon Web Services
All Links at the top and some reused below
Server Download - https://www.minecraft.net/en-us/download/server
Linked Tutorial from Server Download - https://minecraft.fandom.com/wiki/Tutorials/Setting_up_a_server
Github decent starting point - https://github.com/fraserg26/Minecraft-Server
Updating Ubuntu - https://www.cyberciti.biz/faq/upgrade-update-ubuntu-using-terminal/
Make yourself OP - https://www.beastnode.com/portal/knowledgebase/118/Make-Yourself-An-OporOwnerorAdmin.html
OP Levels - https://nodecraft.com/support/games/minecraft/how-to-set-a-player-as-op-admin#h-permission-levels-a2cc576ecf
Server Properties - https://minecraft.fandom.com/wiki/Server.properties
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/103915/how-do-i-configure-swappiness
Looking at system error with journlctl - Also did not cover since we did not have that type of issue - https://linuxhint.com/journalctl-tail-and-cheatsheet/
Check out this minecraft channel as well - https://www.youtube.com/channel/UCMW47H-_YdmbY-JqIWyCnVQ
Sar - https://www.tothenew.com/blog/install-and-configure-sar-on-ubuntu/
Update the server
* https://www.cyberciti.biz/faq/upgrade-update-ubuntu-using-terminal/
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/Minecraft-Server
* 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/download/server
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 - https://www.youtube.com/channel/UCMW47H-_YdmbY-JqIWyCnVQ
Other Videos By Information Technology
Other Statistics
Minecraft Statistics For Information Technology
Currently, Information Technology has 321 views for Minecraft across 2 videos. His channel published less than an hour of Minecraft content, or 4.43% of the total watchable video on Information Technology's YouTube channel.