php遇到Allowed memory size of 134217728 bytes exhausted问题解决方法
终端报出了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
转载于:https://www.cnblogs.com/daochong/p/10291557.html
php遇到Allowed memory size of 134217728 bytes exhausted问题解决方法相关推荐
- php的Allowed memory size of 134217728 bytes exhausted问题解决办法
php的Allowed memory size of 134217728 bytes exhausted问题解决办法 参考文章: (1)php的Allowed memory size of 13421 ...
- php.ini 老薛,出现Allowed memory size of 134217728 bytes exhausted怎么办?
有站长在交流群内说到使用 ZBlogPHP 建站在发布文章的时候总是出现以下错误: Allowed memory size of 134217728 bytes exhausted(tried to ...
- 执行php程序的时候,报错Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 bytes)...
执行php程序时,会报下面的错误 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 ...
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 85 bytes)
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 85 bytes) PHP5中,对于m ...
- PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes)
内存已耗尽,这关系到PHP的memory_limit的设置问题 1.修改配置文件 ~]# vi /etc/php7/php.ini memory_limit = 256M 2.重启 superviso ...
- Fatal error: Allowed memory size of 524288000 bytes exhausted (tried to allocate 64 bytes) in D
Fatal error: Allowed memory size of 524288000 bytes exhausted (tried to allocate 64 bytes) in D 从数据库 ...
- Php Fatal error: Allowed memory size of 33554432 bytes exhausted 的解决办法
Php Fatal error: Allowed memory size of 33554432 bytes exhausted 的解决办法 在 php.ini 配置文档里面,默认的memory_li ...
- Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 359404 bytes) in
为什么80%的码农都做不了架构师?>>> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried ...
- composer windows 下面内存溢出 Allowed memory size of 1610612736 bytes exhausted
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocat e 4096 bytes) in ph ...
最新文章
- 头条面试归来,有些话想和Java程序员说!
- 在windows下使用llvm+clang
- 禁止套娃!Redis官网宕机,返回“连接不上Redis”
- 判断客户端是电脑还是手机
- Server Hard drive mode
- php iframe 上传文件,php+iframe 实现上传文件功能示例
- SpringBoot部署项目到Linux上传文件路径问题
- 税控盘版开票助手开发
- VMware ESXi 7.0 U3 SLIC 2.6 Unlocker 集成 Intel NUC 网卡、USB 网卡和 NVMe 驱动
- 打开html文件很卡,网页打开很慢是什么原因【解决办法】
- python中forward是什么意思_pytorch 中forward 的用法与解释说明
- H5移动应用的发布优化(四)图片优化
- 苹果手机用什么蓝牙耳机好?适合苹果的音乐蓝牙耳机推荐
- python代码画樱花教程-如何用Python代码实现樱花树效果
- 川藏自驾游的神州租车攻略
- 对象和String之间转换(包含基本类型转换)
- Leetcode——至多包含K个不同字符的最长子串
- DLX精确覆盖 hdu4069 Squiggly Sudoku
- 仿新浪热门微博页面动态添加Tab标签与Fragment联动的实现
- 查看window7 是否永久激活