phpstudy nginx 報錯upstream prematurely closed connection while reading response header from up

環境

phpstudy php7.0.12-nts + Nginx

錯誤

早上一訪問本地就報502,然後重啓 + 重新配置nginx.conf也無效
然後取查看phpstudy 的 nginx/logs/error.log 發現一訪問本地網站就報下面錯

phpstudy報錯
[error] 37564#37228: *1 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /1.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
翻譯:從上游讀取響應頭時上游過早關閉的連接
個人猜想:傳輸數據過多,其實是header過大的問題,殺掉9000端口

其中“GET /1.php HTTP/1.1” 是我訪問本地的phpstudy中www目錄下1.php 文件

後面通過殺掉windows 9000端口進程就好了
1、打開windows CMD窗口
兩步方法 : 1 查詢端口占用,2 強行殺死進程
在這裏插入圖片描述

再次訪問就可以了

發佈了47 篇原創文章 · 獲贊 21 · 訪問量 10萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章