(ubuntu)nginx:[emerg] bind()到0.0.0.0:80失败(13:权限被拒绝) [英] (ubuntu) nginx: [emerg] bind() to 0.0.0.0:80 failed (13: permission denied)

查看:1168
本文介绍了(ubuntu)nginx:[emerg] bind()到0.0.0.0:80失败(13:权限被拒绝)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助找出此权限被拒绝错误的根本原因. nginx需要什么权限?为什么这么复杂?

I need help figuring out the root cause of this permission denied error. What permissions does nginx need? Why is it so complicated?

推荐答案

套接字API bind()到小于1024的端口(如您提到的端口80)需要root访问权限.

the socket API bind() to a port less than 1024, such as 80 as your title mentioned, need root access.

这是">绑定到小于1024且没有root的端口访问"

另一种更简单的方法是以root身份运行nginx.

and another easier way is to run nginx as root.

这篇关于(ubuntu)nginx:[emerg] bind()到0.0.0.0:80失败(13:权限被拒绝)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆