Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
4783 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

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

Hope it helps

Avatar
Verwerfen
Beste Antwort

sudo nginx -t

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Mai 24
7952
1
Juli 19
2681
4
Mai 24
9171
1
Dez. 23
35292
2
Sept. 24
2296