تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
4739 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 24
7912
1
يوليو 19
2648
4
مايو 24
9150
1
ديسمبر 23
35240
2
سبتمبر 24
2260