fpm配置
当fastcgi_pass 127.0.0.1:9000用此方式将请求交给fpm时/etc/php/7.0/fpm/pool.d/www.conf要注意两个地方的配置
- listen.allowed_clients = 127.0.0.1
- 注释:listen = /var/run/php5-fpm.sock 并增加 listen = 9000
- 重新启动fpm /etc/init.d/php7.0-fpm restart
- 重新启动nginx sudo service nginx restart