Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
4724 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

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

Hope it helps

Avatar
Ignorer
Meilleure réponse

sudo nginx -t

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
mai 24
7902
1
juil. 19
2642
4
mai 24
9135
1
déc. 23
35230
2
sept. 24
2245