本文由<a href="https://www.ymkuzhan.com/tutorial/development_dom -vvv
Reading ./composer.json
Loading config file ./composer.json
Checked CA file /etc/pki/tls/certs/ca-bundle.crt: valid
Failed to initialize global composer: Composer could not find the config file: /home/admin/.composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Reading /home/wwwroot/vendor/composer/installed.json
Loading plugin EasyWeChatComposer\Plugin
Loading plugin think\composer\Plugin
Running 1.7.2 (2018-08-16 16:57:12) with PHP 7.1.18 on Linux / 2.6.32-696.16.1.el6.x86_64
Downloading https://repo.packagist.org/packages.json
Writing /home/admin/.composer/cache/repo/https—repo.packagist.org/packages.json into cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2013.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2014.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2015.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2016.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2017.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2018.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2019-01.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2019-04.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2019-07.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2019-10.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-archived.json from cache
Downloading http://repo.packagist.org/p/provider-latest%24502b160e3dcbe13f8c125df618d18632ebbad2402f1e07d96e00bf46c3da14ac.json
Writing /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-latest.json into cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-voku$simple-html-dom.json from cache
Using version ^4.7 for voku/simple_html_dom
./composer.json has been updated
Reading ./composer.json
Loading config file ./composer.json
Failed to initialize global composer: Composer could not find the config file: /home/admin/.composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Reading /home/wwwroot/vendor/composer/installed.json
Loading plugin EasyWeChatComposer\Plugin_composer_tmp0
Loading plugin think\composer\Plugin_composer_tmp1
Reading ./composer.lock
Loading composer repositories with package information
Downloading https://repo.packagist.org/packages.json
Writing /home/admin/.composer/cache/repo/https—repo.packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2013.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2014.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2015.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2016.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2017.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2018.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2019-01.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2019-04.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2019-07.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-2019-10.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-archived.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/p-provider-latest.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-adbario$php-dot-notation.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-clagiordano$weblibs-configmanager.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-danielstjules$stringy.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-guzzlehttp$guzzle.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-mtdowling$jmespath.php.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-alibabacloud$client.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-symfony$polyfill-mbstring.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-guzzlehttp$psr7.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-guzzlehttp$promises.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-psr$http-message.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-ralouphie$getallheaders.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-aliyuncs$oss-sdk-php.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-doctrine$cache.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-easywechat-composer$easywechat-composer.json from cache
Reading /home/admin/.composer/cache/repo/https—repo.packagist.org/provider-symfony$options-resolver.json from cache

解决办法:

一般是内存不足导致进程被杀死。

没办法增大物理内存的话可以考虑扩容 swap 分区。

参考如下:

composer 安装或者更新时报错killed ,因为当前内存不足。

2cb0923547efcae4e358cbc39dcca1c.png

free -m
mkdir -p /var/_swap_
cd /var/_swap_
#Here, 1M * 2000 ~= 2GB of swap memory
dd if=/dev/zero of=swapfile bs=1M count=2000
mkswap swapfile
swapon swapfile
echo “/var/_swap_/swapfile none swap sw 0 0” >> /etc/fstab
#cat /proc/meminfo
free -m

以上就是composer执行命令提示“已杀死”是什么情况?的详细内容,更多请关注亿码酷站其它相关文章!


<!–亿码酷站直播班–>composer执行命令提示“已杀死”是什么情况?
—–文章转载自PHP中文网如有侵权请联系ymkuzhan@126.com删除

下载声明:
  • 本站资源如无特殊说明默认解压密码为www.ymkuzhan.com建议使用WinRAR解压;
  • 本站资源来源于用户分享、互换、购买以及网络收集等渠道,本站不提供任何技术服务及有偿服务,资源仅提供给大家学习研究请勿作它用。
  • 赞助本站仅为维持服务器日常运行并非购买程序及源码费用因此不提供任何技术支持,如果你喜欢该程序,请购买正版!
  • 版权声明:
  • 下载本站资源学习研究的默认同意本站【版权声明】若本站提供的资源侵犯到你的权益,请提交版权证明文件至邮箱ymkuzhan#126.com(将#替换为@)站长将会在三个工作日内为您删除。
  • 免责声明:
  • 您好,本站所有资源(包括但不限于:源码、素材、工具、字体、图像、模板等)均为用户分享、互换、购买以及网络收集而来,并未取得原始权利人授权,因此禁止一切商用行为,仅可用于个人研究学习使用。请务必于下载后24小时内彻底删除,一切因下载人使用所引起的法律相关责任,包括但不限于:侵权,索赔,法律责任,刑事责任等相关责任,全部由下载人/使用人,全部承担。以上说明,一经发布视为您已全部阅读,理解、同意以上内容,如对以上内容持有异议,请勿下载,谢谢配合!支持正版,人人有责,如不慎对您的合法权益构成侵犯,请联系我们对相应内容进行删除,谢谢!