php – Aus einem unbekannten Grund meldet Composer „SSL: Handshake Timeout', wenn er auf https stößt, und Google hat keine Ergebnisse.
typecho
typecho 2017-06-10 09:47:35
0
5
3853
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL: Handshake timed out

Ausführen: Composer-Diagnoseprüfung zeigt

[root@iZm5e5k2yby7w6yyixdif3Z .composer]# composer diagnose
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: WARNING
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL: Handshake timed out
Failed to enable crypto
failed to open stream: operation failed
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL: Handshake timed out
Failed to enable crypto
failed to open stream: operation failed
Checking disk free space: OK
Checking pubkeys: FAIL
Missing pubkey for tags verification
  ssing pubkey for dev verification
Run composer self-update --update-keys to set them up
Checking composer version: 
                                                                                                 
  [Composer\Downloader\TransportException]                                                       
  The "https://getcomposer.org/versions" file could not be downloaded: SSL: Handshake timed out  
  Failed to enable crypto                                                                        
  failed to open stream: operation failed                                                        
                                                                                                 

diagnose

Ausführen

 php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"

Zeigen

PHP Warning:  copy(): SSL: Handshake timed out in Command line code on line 1
PHP Warning:  copy(): Failed to enable crypto in Command line code on line 1
PHP Warning:  copy(https://install.phpcomposer.com/installer): failed to open stream: operation failed in Command line code on line 1
typecho
typecho

Following the voice in heart.

Antworte allen(5)
三叔

打开php.ini, 将default_socket_timeout值调大。如:default_socket_timeout=360(默认为-1或60)

Peter_Zhu

我觉得这种奇怪的情况,要么

  • 翻墙

  • 使用国内 composer 镜像

给我你的怀抱

换成国内镜像试试

曾经蜡笔没有小新

试试用浏览器请求 https://install.phpcomposer.com/installer, 下载文件后传至服务器 重命名为composer-setup.php

学霸

就是网络差。或者不通。。。

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!