2020-03-09 16:40:44
网上升级很多都不完整,不是这里出错就是那里出错。
遇到的问题是:
一、首先升级curl,这个比较容易,虽然支持http2,但是利用命令发送不了APNs的消息,明明支持http2,可以发送消息的头部依然是http/1.1。找了很多资料,需要升级openssl
二、升级openssl也容易,但是编译了很多次,curl -V查看版本的时候,openssl依然是老版本
总结问题,要cURL支持http2,必须满足openssl >= 1.0.2 , cURL >= 7.46.0
安装库文件
sudo apt-get install g++ make binutils autoconf automake git autotools-dev libtool pkg-config zlib1g-dev libcunit1-dev libxml2-dev libev-dev libevent-dev libssl-dev libjansson-dev libjemalloc-dev cython python3-dev python-setuptools
1、升级openssl
sudo add-apt-repository ppa:0k53d-karl-f830m/openssl
sudo apt-get update
sudo apt-get install openssl
2、安装nghttp2
git clone http://github.com/tatsuhiro-t/nghttp2.git
cd nghttp2
autoreconf -i
automake
autoconf
./configure
make
sudo make install
3、升级curl
sudo apt-get build-dep curl
wget http://curl.haxx.se/download/curl-7.55.1.tar.gz
tar zxvf curl-7.55.1.tar.gz
cd curl-7.55.1
./configure --prefix=/usr/local --with-nghttp2=/usr/local --with-ssl
make -s && sudo make install
sudo ldconfig
4、升级php5-curl
apt-get remove php5-curl
apt-get install php5-curl
php5enmod curl
service apache2 restart
Kubernetes主机间curl cluster ip时通时不通
04-03
Zabbix使用Pycurl模块监控web页面状态
06-23
电脑是否能升级到Windows 8.1 及支持Windows 8.1系统的机型汇总
06-29
php-fpm性能优化实例分析
05-13
php面试笔记(7)-php基础知识-文件及目录处理考点
05-31
Cherokee配置虚拟主机支持php
06-15
UBUNTU 16.04 APACHE2开启http2支持
06-20
centos 7安装redis及php-redis扩展
05-09
centos系统安装配置phpMyAdmin数据库管理工具
04-27
360硬件检测软件提示此计算机没有安装能够支持无线网络适配器(802.11.WAN或BLluetooth)
05-14
EDU 7.5.x网络同传后,接收端无法再次登录到发送端的解决方案
05-15
Gitee 已支持 OSI 认证的第二版木兰开源许可 MulanPSL-2.0
07-05
M7655DHF/M7455DNF/M7675DXF如何实现PCFAX接收和发送传真
03-19
PC-cillin 2007如何设置升级代理服务器
04-10
TR280服务器是否支持USB光驱启动进行系统安装?
06-26
ThinkPad -- 蓝牙支持
05-16
ThinkPad 8 4G网卡如何支持全网通
05-21
ThinkPad T540p Win8升级Win8.1之后亮度无法调节的处理方案
05-24
ThinkPad从Windows 8升级到Windows 8.1后杜比音效提示报错的问题
04-21
Win10升级1607周年更新的几种方法
04-22
WampServer(php集成环境安装包)下载 v3.0.6中文
378.36 MB
下载DirectX修复工具DirectX repair下载 v3.9增强版 64位/32位 支持win7/win10
200M
下载PartitionMagic(PQ)9.00.4156 支持FAT32、NTFS分区 汉化绿色精简版
4.1M
下载WhyNotWin11(Windows 11升级检测工具) v2.3.0.22 免费版
2.2M
下载ut165 (支持检测和修复的U盘工具)V1.65.25 官方版
4.9M
下载vcredist_x86(支持插件) 2021 正式版
2.6M
下载php开发工具(php程序开发软件) V7.3.3.0 中文版
22.56 MB
下载EasyTool下载
1.95MB
下载PSDCodec下载
1.44M
下载典典日记本下载
1.93M
下载硬盘分区魔术师下载
12.2MB
下载