Top Menu

解决composer内存溢出导致无法执行命令

运行composer命令退出

查找composer安装位置

官方文档-内存限制错误

https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors

composer运行需要1.5G以上内存

Note: Composer internally increases the memory_limit to 1.5G.

查询当前PHP内存限制,如果是-1则当前未限制内存

强制限制composer内存占用(不建议,限制过小会报错)

运行top命令查看占用过多内存的程序

重启程序释放内存

 

There are no comments yet

  • Hello, guest

Powered by WordPress. Designed by WooThemes