Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)
缺点消息:
1,欣赏器报500页面,
2,nginx日记报错消息如次:
[error] 11243#0: *11550 FastCGI sent in stderr: “PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 57257775 bytes)
处置本领:
由于php默许外存控制是128M,以是须要窜改php.ini文献。
找到memory_limit = 128M这一条龙,将128M改大点,我这边径直是改成了1024M。
重启关系效劳:
/etc/init.d/php-fpm restart
/etc/init.d/nginx restart
这个不过规范的处置本领,本质上是php文献写的有题目才形成外存溢出的。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。