nginx的配置文件一開始默認是80端口,出現這個錯誤多半是80端口已經被占用。這時候只需要把
server {
listen 8088;
server_name localhost lcsf.com;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://lcsf.com;
proxy_redirect default;
}
這個地方的listen改成一個沒有被占用過的端口然后重啟nginx就可以解決
2016/06/27 13:38:35 [emerg] 6040#7180: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
這樣的錯誤了
