Skip to content

Instantly share code, notes, and snippets.

@deanrather
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deanrather/bdf1e922506f3855c9da to your computer and use it in GitHub Desktop.
Save deanrather/bdf1e922506f3855c9da to your computer and use it in GitHub Desktop.
Setting up a Minecraft Server with Amazon Web Services

Setting up a Minecraft Server with Amazon Web Services

Creating the Instance

  • Login to https://console.aws.amazon.com/ec2/
  • Change to your availablility zone (top-right dropdown)
  • Create a new m3.medium Instance
  • Make sure to open port 25565 on TCP and UDP
  • Create & Save a private key
  • Note the IP address

Setting up Minecraft

  • SSH into the new server using the IP address and Private Key

  • Install the latest Java

    sudo apt-get update sudo apt-get install openjdk-7-jre screen -y

  • Browse to the Minecraft Download Page and copy the download link for minecraft_server_<version>.jar

  • Read and agree to the EULA

    mkdir minecraft cd minecraft wget -O minecraft_server.jar echo "eula=true" > eula.txt screen

  • you can now try connecting, and if it works, close the terminal window

  • because we opened the server in a 'screen', it will keep running afte the terminal is closed

  • to get back into the server terminal, next time you reconnect type screen -r to reconnect

  • mv or rm the world dir, and symlink your desired world there instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment