安装 composer 执行第一条命令就卡了
八米二康 2016-12-30 02:45:22 背景:php 编译安装,如下:
# ./configure
--prefix=/usr/local/php
--enable-fpm
--enable-mbstring
--with-mysqli=mysqlnd
--with-openssl=/usr/local/openssl
执行命令:
$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in Command line code on line 1
Warning: copy(): Failed to enable crypto in Command line code on line 1
Warning: copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1
感觉是证书出了问题,找不到解决办法