作曲家更新“进程被杀死" [英] composer update "process killed"

查看:29
本文介绍了作曲家更新“进程被杀死"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图执行:

composer.phar update

并收到:

致命错误:第 123 行 phar:///home/xxxxxxx/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php 中允许的内存大小为 94371840 字节已用尽(尝试分配 71 个字节)

Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 71 bytes) in phar:///home/xxxxxxx/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 123

xxxxxxx 是用户.

然后我尝试执行:

php -d memory_limit=256M ~/bin/composer.phar update

还有:

php -d memory_limit=512M ~/bin/composer.phar update

然后我收到了这个:

哎呀!您的一个进程(php,pid 14331)刚刚因过度使用资源而被杀死.有关详细信息,请联系 DreamHost 支持.**

Yikes! One of your processes (php, pid 14331) was just killed for excessive resource usage. Please contact DreamHost Support for details.**

如何在 Dreamhost 共享主机上执行作曲家更新?有遇到过这种情况的可以帮帮我吗?

How can I execute composer update on Dreamhost shared host? Can someone who had experienced this situation could help me please?

上下文:Laravel 4

The context: Laravel 4

推荐答案

在你的开发机器上运行composer update命令,生成composer.lock文件.上传那个 composer.lock 文件,然后在共享主机上运行 composer install.这将使用更少的内存!

Run the composer update command on your development machine, which generates the composer.lock file for you. Upload that composer.lock file and on the shared host just run composer install. This will use a lot less memory!

这篇关于作曲家更新“进程被杀死"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆