網(wǎng)站首頁 編程語言 正文
新的服務(wù)器,用了寶塔,在PHP7.3中卻沒有zip擴(kuò)展。于是想到用pecl進(jìn)行安裝:
> pecl install zip
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
Could not download from "https://pecl.php.net/get/zip-1.19.0.tgz", cannot download "pecl/zip" (Connection to `ssl://pecl.php.net:443' failed: )
Error: cannot download "pecl/zip"
Download failed
install failed
沒想到安裝失敗。看到網(wǎng)上很多方法都是講pecl上的擴(kuò)展現(xiàn)在到本地,然后運(yùn)行 pecl 進(jìn)行本地安裝。但是,仔細(xì)看看上面的報(bào)錯(cuò),發(fā)現(xiàn) ssl: xxxxxx faild,看來是https導(dǎo)致的問題。于是不斷查資料,認(rèn)證了自己的想法
php -r "print_r(openssl_get_cert_locations());"
Array
(
[default_cert_file] => /usr/local/openssl/cert.pem
[default_cert_file_env] => SSL_CERT_FILE
[default_cert_dir] => /usr/local/openssl/certs
[default_cert_dir_env] => SSL_CERT_DIR
[default_private_dir] => /usr/local/openssl/private
[default_default_cert_area] => /usr/local/openssl
[ini_cafile] => /etc/pki/tls/certs/ca-bundle.crt
[ini_capath] =>
)
其中certfile : /usr/local/openssl/cert.pem 并不存在,修復(fù)一下:
wget http://curl.haxx.se/ca/cacert.pem && mv cacert.pem /usr/local/openssl/cert.pem
再次運(yùn)行 pecl install ,一切正常。
原文鏈接:https://blog.csdn.net/shengshuai/article/details/107751131
相關(guān)推薦
- 2022-04-25 jQuery利用鍵盤上下鍵移動(dòng)表格內(nèi)容_jquery
- 2022-06-21 Android?Studio實(shí)現(xiàn)下拉列表效果_Android
- 2022-04-04 Error running : No valid Maven installation found.
- 2022-09-16 C#?Socket數(shù)據(jù)接收的三種實(shí)現(xiàn)方式_C#教程
- 2022-04-20 用Python實(shí)現(xiàn)插值算法_python
- 2022-06-12 Python數(shù)據(jù)傳輸黏包問題_python
- 2022-06-30 MongoDB排序時(shí)內(nèi)存大小限制與創(chuàng)建索引的注意事項(xiàng)詳解_MongoDB
- 2022-04-07 Swift實(shí)現(xiàn)簡(jiǎn)易計(jì)算器功能_Swift
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡(jiǎn)單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對(duì)象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支