我正在尝试更新项目中的 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)
也试过了,但错误仍然存在:
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>
这里有什么问题?