php的Allowed memory size of 134217728 bytes exhausted問題解決辦法php
報錯:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 128 bytes) in xxxx/mysqli_result.php on line 183mysql
解析:
134217728/1024/1024 = 128nginx
解決方案1:sql
經過ini_set函數修改配置選項值函數
ini_set(‘memory_limit’,’256M’); //升級爲256M內存php-fpm
解決方案2:spa
一、修改php.ini rest
修改php配置
vi /usr/local/php/etc/php.ini
memory_limit = 128 改爲memory_limit = 256內存
php-fpm重啓
/etc/init.d/php-fpm restart
重啓Nginx
service nginx restartit