Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
4900 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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

Hope it helps

Avatar
Abbandona
Risposta migliore

sudo nginx -t

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mag 24
8064
1
lug 19
2812
4
mag 24
9321
1
dic 23
35496
2
set 24
2533