Skip to content

Instantly share code, notes, and snippets.

@maiha maiha/CentOS7.md
Created Jan 7, 2020

Embed
What would you like to do?

ポートを開ける

  • 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
You can’t perform that action at this time.