Ubuntu nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)


在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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM