Skip to Content
Menú
This question has been flagged
3 Respostes
4470 Vistes

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
Descartar
Best Answer

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
Descartar
Best Answer

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

Hope it helps

Avatar
Descartar
Best Answer

sudo nginx -t

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de maig 24
7582
1
de jul. 19
2427
4
de maig 24
8766
1
de des. 23
34847
2
de set. 24
1685