Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
4382 Vistas

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
Mejor respuesta

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
Mejor respuesta

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

Hope it helps

Avatar
Descartar
Mejor respuesta

sudo nginx -t

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
may 24
7482
1
jul 19
2347
4
may 24
8766
1
dic 23
34774
2
sept 24
1622