在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)!
參考:
