Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
4271 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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

Hope it helps

Avatar
Buang
Jawaban Terbai

sudo nginx -t

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Mei 24
7315
1
Jul 19
2288
4
Mei 24
8766
1
Des 23
34617
2
Sep 24
1435