Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
4757 Переглядів

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)

Аватар
Відмінити
Найкраща відповідь

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.


Аватар
Відмінити
Найкраща відповідь

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

Hope it helps

Аватар
Відмінити
Найкраща відповідь

sudo nginx -t

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
трав. 24
7930
1
лип. 19
2656
4
трав. 24
9154
1
груд. 23
35252
2
вер. 24
2274