php7.0 9000端口未监听

错误日志:connect() failed (111: Connection refused) while connecting to upstream, client: 54.208.84.106, server: xxx.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host:

用这个命令 :netstat -apn|grep 9000

发现端口并未监听

解决方案:去 /etc/php/7.0/fpm/pool.d/www.conf 中的 listen = /var/run/php5-fpm.sock 注释掉,增加 listen = 127.0.0.1:9000,重启 service php7.0-fpm restart,ok

你可能感兴趣的:(Linux,PHP)