Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
4751 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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

Hope it helps

Avatar
Hylkää
Paras vastaus

sudo nginx -t

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
toukok. 24
7924
1
heinäk. 19
2653
4
toukok. 24
9152
1
jouluk. 23
35245
2
syysk. 24
2267