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