Ubuntu nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
2016-07-18 15:47
531 查看
在Ubuntu 12中启动刚安装好的Nginx,报错:
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.
所以说:
要么换用户为 root,要么改端口,,,因为是本地开发环境,所以我选择了改端口(8088)!
参考:
http://stackoverflow.com/questions/18480201/ubuntu-nginx-emerg-bind-to-0-0-0-080-failed-13-permission-denied
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.
所以说:
要么换用户为 root,要么改端口,,,因为是本地开发环境,所以我选择了改端口(8088)!
参考:
http://stackoverflow.com/questions/18480201/ubuntu-nginx-emerg-bind-to-0-0-0-080-failed-13-permission-denied
相关文章推荐
- centos 部署nginx + python3 +uwsgi
- Windows下配置nginx+php(wnmp)
- Nginx支持PHP配置
- 使用Nginx+FFMPEG搭建HLS直播转码服务器
- Ubuntu 14 编译安装 PHP 5.4.45 + Nginx 1.4.7 + MySQL 5.6.26 笔记
- 深入NGINX:我们如何设计它的性能和扩展性
- nginx实现单服务代理多域名
- nginx编译
- 最新完美解决nginx支持thinkphp的PATH_INFO,URL格式的问题
- Nginx配置文件详细说明
- nginx配置引发的403问题
- 查看nginx,apache,mysql,php的编译参数
- linux——Nginx安装
- 使用Nginx+Lua(OpenResty)开发高性能Web应用
- Python脚本——Nginx日志分割
- Nginx安装
- nginx配置文件
- Apache和Nginx设置伪静态(URL Rewrite)的方法
- nginx_Nchan调试
- nginx启动、开机自启动、重启、关闭