原文:nginx访问502 gateway,*1 connect() failed (111: Connection refused) while connecting to upstream

安装好nginx,php环境后,配置虚拟主机,结果访问后就报 gateway,查看日志文件后,显示错误如下: : : error : connect failed : Connection refused while connecting to upstream, client: . . . , server: . . . , request: GET HTTP . 解决方案,先查看下php fp ...

2019-04-29 16:40 0 1281 推荐指数:

查看详情

nginx 报错 connect() failed (111: Connection refused) while connecting to upstream

公司网站搬迁到新服务器后,发现站点访问不了,network里面提示502,查看相关的server配置,感觉没有什么问题,经过测试发现txt、html、等非php文件能够直接访问,也就是php访问不了,初步断定有可能是php-fpm没有安装或者没有启动导致。首先判断php-fpm是否已经安装 ...

Wed Feb 20 00:23:00 CST 2019 1 6492
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM