Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
5098 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
8285
1
jul 19
2953
4
may 24
9510
1
dic 23
35733
2
sept 24
2851