EC2 Minecraft Server

Running your own Minecraft Server on Amazon Linux

C05348A3-9AB8-42C9-A6E0-81DB3AC59FEB
           

The following commands will allow you to configure your own Minecraft Server on an Amazon Linux EC2 instance.

Why use Paper?

Whether you're an administrator looking to boost your server performance or a developer looking for more functionality, Paper is ready for you.

We're using a Paper MC server because as they say, It's stupidly fast. It's a clean version of the Minecraft Server with numerous improvements and optimizations resulting in a significant increase in performance. Paper also includes the next version of Timings, enabling you to quickly find out what's slowing down your server.

Create an EC2 instance in AWS, and use the size that best fits your needs. We're ale using Amazon Linux in this example but other Linux flavors can also work.

Determine the latest version on the Paper server and substitute that version in the commands below. These commands open port 25565 on the local server, but you will also need to allow that port for incoming traffic in the Security Group associated with your EC2 Instance.

These commands then install Java, download the Paper server and launch it. Be aware that newer versions of the Paper server may require other versions of Java.

sudo apt install iptables-persistent
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 25565 -j ACCEPT
sudo netfilter-persistent save


sudo apt-get install software-properties-common
wget -O- https://apt.corretto.aws/corretto.key | sudo apt-key add -
sudo add-apt-repository 'deb https://apt.corretto.aws stable main'
sudo apt-get update
sudo apt-get install -y java-17-amazon-corretto-jdk


wget https://papermc.io/api/v2/projects/paper/versions/1.17.1/builds/405/downloads/paper-1.17.1-405.jar

java -Xms1G -Xmx7G -jar paper-1.17.1-405.jar nogui

You'll also need to adjust the following parameters, the -Xms1G -Xmx7G assume that you have at least 8GB of RAM available on the server (leave about 1GB for the Operating System and allow Java to grab the other 7GB).

Posted Comments: 0