原文: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