コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
4741 ビュー

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
7913
1
7月 19
2648
4
5月 24
9151
1
12月 23
35243
2
9月 24
2261