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
  • 相关阅读:
    mysql导入导出数据过大命令
    thinkphp条件查询
    php表单提交安全方法
    ubuntu软件(查看文件差异)
    thinkphp if标签
    thinkphp导出报表
    jquery.easing.js下载地址
    水平手风琴切换效果插件亲自试过很好用
    li ie6/7 3px bug
    placeholder兼容IE6-9代码
  • 原文地址:https://www.cnblogs.com/brookin/p/4425950.html
Copyright © 2011-2022 走看看