Skip to Content
Menu
This question has been flagged
3 Replies
4824 Rodiniai

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)

Portretas
Atmesti
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.


Portretas
Atmesti
Best Answer

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

Hope it helps

Portretas
Atmesti
Best Answer

sudo nginx -t

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
geg. 24
7987
1
liep. 19
2712
4
geg. 24
9209
1
gruod. 23
35345
2
rugs. 24
2342