Fatal error: Allowed memory size of 134217728 bytes exhausted的因为

Fatal error: Allowed memory size of 134217728 bytes exhausted的因为

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文献写的有题目才形成外存溢出的。

分享到 :
相关推荐

Leave a Reply

Your email address will not be published. Required fields are marked *