Skip to content

Instantly share code, notes, and snippets.

@omerbn
Created February 7, 2019 15:06
Show Gist options
  • Save omerbn/d91aa96edfd2baefa59d04c5982d49b6 to your computer and use it in GitHub Desktop.
Save omerbn/d91aa96edfd2baefa59d04c5982d49b6 to your computer and use it in GitHub Desktop.
Allow Node bind port 80 (Ubuntu 16.04)
open port 80 to run without sudo:
which node
-> get node_location
sudo apt-get install libcap2-bin
-> wait to complete
sudo setcap cap_net_bind_service=+ep <node_location>
-> Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment