zoukankan      html  css  js  c++  java
  • 安装 composer SSL operation failed with code 1

    gavin@webdev:~> curl -sS https://getcomposer.org/installer | php
    
    Downloading...
    Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    file_get_contents(): Failed to enable crypto
    file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
    Downloading...
    Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    file_get_contents(): Failed to enable crypto
    file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
    Downloading...
    Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    file_get_contents(): Failed to enable crypto
    file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
    The download failed repeatedly, aborting.

    解决:

    wget http://curl.haxx.se/ca/cacert.pem
    curl -sS https://getcomposer.org/installer | php -- --cafile=cacert.pem
  • 相关阅读:
    java传递String参数
    C++ string与int的互相转换
    java插入排序
    凸包Graham Scan算法实现
    求平面上N点最远两点和最近两点距离
    求最大公约数
    n个数连接得到最小或最大的多位整数(携程)
    Java快排
    背包问题
    二分查找离左边元素最近的(可以等于)
  • 原文地址:https://www.cnblogs.com/brookin/p/4425950.html
Copyright © 2011-2022 走看看