İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
4734 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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

Hope it helps

Avatar
Vazgeç
En İyi Yanıt

sudo nginx -t

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
May 24
7911
1
Tem 19
2648
4
May 24
9149
1
Ara 23
35240
2
Eyl 24
2259