之前在配置yaf框架项目时,报出了connect() failed (111: Connection refused) while connecting to upstream,
,定位到是nginx配置文件server段的配置与php-fpm.conf里面配置的链接方式不同造成的
- 修改php-fpm.conf的配置文件
注释掉listen = /tmp/php-cgi.sock
和;listen.allowed_clients = 127.0.0.1
[www]
;listen = /tmp/php-cgi.sock
listen = 127.0.0.1:9000
listen.backlog = -1
;listen.allowed_clients = 127.0.0.1
listen.owner = www