2018/04/14 14:32:36 [error] 18407#18407: *317581 connect() failed (111: Connection refused) while connecting to upstream, client: 111.214.115.172, server: , request: “GET / HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “111.78.118.132:808”
出现这个问题是因为php与nginx没有配置好,解决方法如下:
vim /etc/php/7.2/fpm/pool.d/www.conf
listen.allowed_clients = 127.0.0.1
listen = 9000
systemctl reload php7.2-fpm.service
nginx -s reload