Skip to content

Instantly share code, notes, and snippets.

@maiha
Created January 7, 2020 02:52
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 maiha/dd82dab4fb29d06ff02b1bf9026114b5 to your computer and use it in GitHub Desktop.
Save maiha/dd82dab4fb29d06ff02b1bf9026114b5 to your computer and use it in GitHub Desktop.

ポートを開ける

  • 8080にAPIを立てる
cat /usr/lib/firewalld/services/http.xml | sed -e 's/80/8080/g' > /etc/firewalld/services/http-api.xml
systemctl reload firewalld

firewall-cmd --add-service=http-api --zone=public --permanent
firewall-cmd --zone=public --list-services --permanent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment