PHP 罢工之 ~ 111: Connection refused) while connecting to upstream

关于PHP的这个错误:

connect() failed (111: Connection refused) while connecting to upstreamclient: 123.xx.xx.xxx, server: ~.com, request: "GET ...... HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.~.com" 

curl -I IP //可以连接
telnet IP 80 //远程主机连不上

哪么就重启
service nginx restart //还是不行甚至reboot服务器

Less -N ……nginx.log 就看到了上面的错误

解决办法有很多,但是下面这个适合我:
sudo vi /etc/nginx/nginx.conf 在http区块加入

http {
...
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
...
}

发表评论或回复

*选项为必填项,您的电子邮件地址不会被公开。

*
*