php遇到Allowed memory size of 134217728 bytes exhausted问题解决方法
2018-01-11 16:00
513 查看
终端报出了Allowed memory size of 134217728 bytes exhausted错误,而且重启电脑再次执行仍然是一样。上网查了查,是因为php默认内存限制是128M,所以需要修改php.ini文件。
查找到memory_limit = 128M这一行,将128M改大点,我这里直接是改成了2048M。
2、重启服务器,通过sudo /usr/sbin/apachectl restart来重启apache服务器,当然其实用终端执行php的话,不重启服务器也是可以的。
3、重新执行php文件,成功,OK
查找到memory_limit = 128M这一行,将128M改大点,我这里直接是改成了2048M。
2、重启服务器,通过sudo /usr/sbin/apachectl restart来重启apache服务器,当然其实用终端执行php的话,不重启服务器也是可以的。
3、重新执行php文件,成功,OK
相关文章推荐
- Mac下执行php遇到Allowed memory size of 134217728 bytes exhausted问题解决方法
- PHP Fatal error: Allowed memory size of 134217728 bytes exhausted……解决方法
- 修改 PHP 消耗内存的方法(Allowed memory size of 8388608 bytes exhausted解决方法)
- 解决php服务器软件内存耗尽Allowed memory size of 123456789 bytes exhausted方法
- 修改 PHP 消耗内存的方法(Allowed memory size of 8388608 bytes exhausted解决方法)
- php的Allowed memory size of 134217728 bytes exhausted问题
- 问题解决Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 38218371 bytes)
- PHP错误——Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes)
- PHP错误Allowed memory size of 67108864 bytes exhausted的3种解决办法
- PHP提示Fatal error: Allowed memory size of 8388608 bytes exhausted的解决办法
- Php Fatal error: Allowed memory size of 33554432 bytes exhausted 的解决办法
- PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in
- PHP错误Allowed memory size of 67108864 bytes exhausted的3种解决办法
- php.ini的memory_limit设置以及Fatal error: Allowed memory size of 134217728 bytes exhausted
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes)错误的解决
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 775920 bytes) 问题解决
- PHP 上传文件 Allowed memory size of 134217728 bytes exhausted
- Fatal error: Allowed memory size of 8388608 bytes exhausted解决方法
- 解决PHP之 Allowed memory size of xxx bytes exhausted
- Fatal error: Allowed memory size of 8388608 bytes exhausted解决方法