yaodequan 发表于 2019-4-25 23:08:33

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

Apr 25 22:27:01.061936 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 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 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 日志有以上提示,求指导 什么原因造成的,如何解决




licess 发表于 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错误日志的方法
页: [1]
查看完整版本: 新服务器 出现500错误 重启PHP后恢复!