Created
February 7, 2019 15:06
-
-
Save omerbn/d91aa96edfd2baefa59d04c5982d49b6 to your computer and use it in GitHub Desktop.
Allow Node bind port 80 (Ubuntu 16.04)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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