Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
4679 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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

Hope it helps

Avatar
Annuleer
Beste antwoord

sudo nginx -t

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
mei 24
7840
1
jul. 19
2598
4
mei 24
9046
1
dec. 23
35169
2
sep. 24
2154