php - Zend Framework 2 应用程序中 composer.phar self 更新的 Composer\Downloader\TransportException

标签 php zend-framework2 composer-php

我正在尝试更新项目中的 Zend Framework 2 库并遇到异常:

use@machine:/path/to/project# php composer.phar self-update
[Composer\Downloader\TransportException]                                                       
The "https://getcomposer.org/version" file could not be downloaded (HTTP/1.1 502 Bad Gateway)

也试过了so ,但错误仍然存​​在:

use@machine:/path/to/project# curl http://getcomposer.org/installer | php
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   166  100   166    0     0   1490      0 --:--:-- --:--:-- --:--:--  4611
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>

这里有什么问题吗?

最佳答案

Composer 服务器当前已关闭

关于php - Zend Framework 2 应用程序中 composer.phar self 更新的 Composer\Downloader\TransportException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16081526/

相关文章:

php - MySQL 全文搜索仅适用于 BOOLEAN 模式。如何获得相关性?

php - 将 friend 和用户表链接在一起(以获取 friend 的用户名?)

php - 在数组中插入元素

performance - Composer 在 ZF2 中是否提供超过 Zend Loader 的任何性能

php - 如何在 zend framework php 中使用异常处理?

php - PHP UOPZ 扩展导致 Laravel 7 Composer 自动加载错误

php - 自动生成优化的自动加载器

macos - 尝试 self 更新 Composer 时出错

php - 从 PHP 中的类外部调用 protected 方法

php - 如何在 JSON 响应中呈现 ZF2 View ?