跳至内容
菜单
此问题已终结
3 回复
4759 查看

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
7932
1
7月 19
2656
4
5月 24
9154
1
12月 23
35252
2
9月 24
2274