Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
4756 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Melhor resposta

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

Hope it helps

Avatar
Cancelar
Melhor resposta

sudo nginx -t

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
mai. 24
7930
1
jul. 19
2655
4
mai. 24
9154
1
dez. 23
35252
2
set. 24
2273