kevent() reported that connect() failed (61: Connection refused) while connecting to upstream
访问php页面时,nginx报如下错误 :
2016/03/22 09:40:09 [error] 2633#0: *86 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 127.0.0.1, server: www.app.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.app.com"
出错的原因是php-fpm未启动。
解决:
sudo php-fpm