Skip to content

Instantly share code, notes, and snippets.

@javecs
Last active March 26, 2017 13:01
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 javecs/faf0634aac128ba2f6ed138351911c08 to your computer and use it in GitHub Desktop.
Save javecs/faf0634aac128ba2f6ed138351911c08 to your computer and use it in GitHub Desktop.
Spring Boot アプリのポートを80にしたときに、起動中にエラーが起きる理由

On linux ports below 1024 can be opened only by root, so the port 80 is restricted by default

# iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment