VPS侦探论坛

 找回密码
 注册
查看: 3218|回复: 1

新服务器 出现500错误 重启PHP后恢复!

[复制链接]
发表于 2019-4-25 23:08:33 | 显示全部楼层 |阅读模式

Apr 25 22:27:01.061936 [WARNING] fpm_stdio_child_said(), line 167: child 22759 (pool default) said into stderr: "mmap cache can't open /home/include/common.file.func.php - Too many open files in system (pid 22759)"
Apr 25 22:27:01.378559 [WARNING] fpm_stdio_child_said(), line 167: child 22753 (pool default) said into stderr: "mmap cache can't open /home/data/config.cache.inc.php - Too many open files in system (pid 22753)"
Apr 25 22:27:29.045073 [WARNING] fpm_stdio_child_said(), line 167: child 22743 (pool default) said into stderr: "mmap cache can't open /home/include/common.file.func.php - Too many open files in system (pid 22743)"


之前一直没有遇到过类似问题, 查看PHP 日志有以上提示,求指导 什么原因造成的,如何解决




美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-4-26 11:45:33 | 显示全部楼层


Too many open files in system 可以在 /usr/local/php/etc/php-fpm.conf 中添加 rlimit_files = 65535
然后重启php-fpm试试

500错误和前面的php-fpm日志里的警告信息应该是没关系的,500错误要开php错误日志,可以查看官网常见问题查找开启php错误日志的方法
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 21:15 , Processed in 0.025683 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表