跳至內容
選單
此問題已被標幟
3 回覆
4832 瀏覽次數

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
5月 24
7991
1
7月 19
2720
4
5月 24
9217
1
12月 23
35351
2
9月 24
2351