Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
4755 Widoki

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)

Awatar
Odrzuć
Najlepsza odpowiedź

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.


Awatar
Odrzuć
Najlepsza odpowiedź

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

Hope it helps

Awatar
Odrzuć
Najlepsza odpowiedź

sudo nginx -t

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 24
7930
1
lip 19
2655
4
maj 24
9154
1
gru 23
35252
2
wrz 24
2271