Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odgovori
4745 Prikazi

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
Opusti
Best Answer

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
Opusti
Best Answer

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

Hope it helps

Avatar
Opusti
Best Answer

sudo nginx -t

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
maj 24
7918
1
jul. 19
2649
4
maj 24
9151
1
dec. 23
35244
2
sep. 24
2265