Runnigg简单的php脚本nginx + php-fpm7.2
index.php:
echo "start";
include ('/var/www/public/test.php');
echo "end";
test.php:
$a['components/xxxx/yyyy1/.description.php'] = 1;
$a['components/xxxx/yyyy2/.description.php'] = 1;
$a['components/xxxx/yyyy3/.description.php'] = 1;
$a['components/xxxx/yyyy4/.description.php'] = 1;
$a['components/xxxx/yyyy5/.description.php'] = 1;
.......
.......
$a['components/xxxx/yyyy80000/.description.php'] = 1;
60000行-工作正常
80000行(6.8 MB)-运行时间2秒,nginx错误502
2018/06/27 08:11:12 [错误] 6#6:* 6 recv()失败(104:连接 从对等方重置),同时从上游客户端读取响应头: 172.20.0.1,服务器:测试,请求:“ GET /index.php HTTP / 1.1”,上游:“ fastcgi:// unix:/var/run/php/php7.2-fpm.sock:”,主机: “ 172.20.0.6”
如何解决这个问题?