日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

執行composer安裝命令報錯處理

作者:左手江湖 更新時間: 2022-01-29 編程語言

執行composer安裝命令報錯

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

PHP Warning: ?copy(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify fa
iled in Command line code on line 1

Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify fa
iled in Command line code on line 1
PHP Warning: ?copy(): Failed to enable crypto in Command line code on line 1

Warning: copy(): Failed to enable crypto in Command line code on line 1
PHP Warning: ?copy(https://install.phpcomposer.com/installer): failed to open st
ream: operation failed in Command line code on line 1

Warning: copy(https://install.phpcomposer.com/installer): failed to open stream:
?operation failed in Command line code on line 1
?

?解決辦法
下載證書https://curl.se/docs/caextract.html
配置到php.ini文件中
例如我的證書文件在D:\phpstudy_pro\Extensions\php\cacert-2020-10-14.pem中。
openssl.cafile= D:\phpstudy_pro\Extensions\php\cacert-2020-10-14.pem

原文鏈接:https://blog.csdn.net/shaofei1986/article/details/118962054

欄目分類
最近更新