Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
4272 Vizualizări

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)

Imagine profil
Abandonează
Cel mai bun răspuns

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.


Imagine profil
Abandonează
Cel mai bun răspuns

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

Hope it helps

Imagine profil
Abandonează
Cel mai bun răspuns

sudo nginx -t

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mai 24
7315
1
iul. 19
2288
4
mai 24
8766
1
dec. 23
34618
2
sept. 24
1436