Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4273 มุมมอง

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 ตอบกลับ มุมมอง กิจกรรม
Odoo with nginx and domain แก้ไขแล้ว
2
พ.ค. 24
7320
1
ก.ค. 19
2290
4
พ.ค. 24
8766
1
ธ.ค. 23
34627
2
ก.ย. 24
1438