Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
4737 Zobrazení

My Nginx service is active but at nginx -t showing below error : 

nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

Avatar
Zrušit
Nejlepší odpověď

the socket API bind() to a port less than 1024, such as 80 as your title mentioned, need root access.

here is "Bind to ports less than 1024 without root access"

and another easier way is to run nginx as root.


Avatar
Zrušit
Nejlepší odpověď

Hi, you can follow this: https://youtu.be/-3wV7A_4s-w

Hope it helps

Avatar
Zrušit
Nejlepší odpověď

sudo nginx -t

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 24
7911
1
čvc 19
2648
4
kvě 24
9150
1
pro 23
35240
2
zář 24
2259