Skip to content

Instantly share code, notes, and snippets.

@uehara1414
Last active September 3, 2016 07:43
Show Gist options
  • Save uehara1414/253c938b6ba099969d5e17fdb9fd6b4c to your computer and use it in GitHub Desktop.
Save uehara1414/253c938b6ba099969d5e17fdb9fd6b4c to your computer and use it in GitHub Desktop.
yum -y install java
systemctl enable firewalld
systemctl start firewalld
firewall-cmd --add-port=25565/tcp --permanent
firewall-cmd --reload
mkdir /root/minecraft
wget -P /etc/systemd/system/ https://gist.githubusercontent.com/uehara1414/c0d7f68de0625a38c12baef9aae196eb/raw/e67bd0bd6c8eb50394632f54afa794ac499e4e12/minecraft-server.service
systemctl daemon-reload
systemctl enable minecraft-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment