欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

关于php fast cgi异常停止

程序员文章站 2022-05-17 18:40:53
...

使用环境:windows10、php7.2、Nginx

准备步骤:

新建一个test.php

<?php

var_dump(getenv('REMOTE_ADDR'));  

错误结果

关于php fast cgi异常停止

	Nginx 错误日志:
	2020/04/21 22:56:29 [error] 2360#7376: *2 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /test.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "127.0.0.1", referrer: "http://127.0.0.1/"

解决方法

	更换php版本(我更换7.1.3)

关于php fast cgi异常停止
进入127.0.0.1/test.php
关于php fast cgi异常停止

相关标签: php nginx