当前位置: 首页 > news >正文

长沙长沙h5网站建设icp备案查询

长沙长沙h5网站建设,icp备案查询,世纪城网站建设,天津企业做网站由于宝塔面板默认的php编译的curl未加入http2的支持,如果服务需要使用apns推送等需要http2.0的访问就会失败,所以重新编译php让其支持http2.0 编译方法: 一、安装nghttp2 git clone https://github.com/tatsuhiro-t/nghttp2.git cd nghttp…

由于宝塔面板默认的php编译的curl未加入http2的支持,如果服务需要使用apns推送等需要http2.0的访问就会失败,所以重新编译php让其支持http2.0

编译方法:

一、安装nghttp2

git clone https://github.com/tatsuhiro-t/nghttp2.git
cd nghttp2
autoreconf -i
automake
autoconf
./configure
make
make install
echo '/usr/local/lib' > /etc/ld.so.conf.d/custom-libs.conf
ldconfig#查看nghttp2版本 测试时安装1.19.0版本顺利通过
nghttpx -V

注意:新版本的nghttp2需要python3.8以上版本
如果系统未安装phthon3.8以上版本的,请先行安装,安装方法如下:

1、下载安装包(以python3.8.8为例)

wget https://www.python.org/ftp/python/3.8.8/Python-3.8.8.tgz
tar -zxvf  Python-3.8.8.tgz

2、编译安装Python

mkdir /usr/local/python3 #创建编译安装目录
cd Python-3.8.3
./configure --prefix=/usr/local/python3
make && make install
3、建立软链接,未完成这一步会找不到python3#添加python3的软链接 
ln -s /usr/local/python3/bin/python3 /usr/bin/python

二、安装Curl

curl可以通过官网或github下载
github: https://github.com/curl/curl/releases
官网: https://curl.haxx.se/download/curl-7.70.0.tar.gz

wget https://curl.haxx.se/download/curl-7.73.0.tar.gz
tar -zxf curl-7.73.0.tar.gz
cd curl-7.73.0
rm -rf /usr/local/curl
./configure --prefix=/usr/local/curl --enable-ares --without-nss --with-ssl=/usr/local/openssl --with-nghttp2=/usr/local/nghttp2/#配置时,可以看到nghttp2  enable就说明是已经开启
make
make install#删除安装包,可选
-> cd ..
-> rm -f curl-7.73.0.tar.gz
-> rm -rf curl-7.73.0#查看版本是否正确
-> curl -V
curl 7.73.0 (x86_64-pc-linux-gnu) libcurl/7.73.0 OpenSSL/1.0.2k-fips zlib/1.2.7 nghttp2/1.40.0
Release-Date: 2020-10-14
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTP2 HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL UnixSockets
#看到http2是说明安装正常

三、安装完成后在宝塔后台重新编译PHP

编译时最好是选择下自定义模块增加以下参数

--with-curl=/usr/local/bin/curl

在这里插入图片描述

php -r 'phpinfo();' | grep HTTP2
HTTP2 => Yes

大功告成!!!

总结

安装时遇到一个问题就是curl版本跟php版本有对应关系。如果版本不对应,即使curl编译成功,并且也支持http2,但是编译php之后,不生效。具体版本对应关系目前不太清楚。安装中测试了如下关系。
php7.3 => curl 7.73.0 启用成功
php7.4 => curl 7.74.0 启动不生效
php7.0 7.2 7.3 7.4 => curl 7.68.0 7.70.0均不生效。
据此推测应该php7.4 需要更高一些的curl版本才行。有空后期再试试。


文章转载自:
http://dinncozapping.zfyr.cn
http://dinncodino.zfyr.cn
http://dinncobhave.zfyr.cn
http://dinncodepict.zfyr.cn
http://dinncosiesta.zfyr.cn
http://dinncocohoe.zfyr.cn
http://dinncoinfrasound.zfyr.cn
http://dinncocontrariness.zfyr.cn
http://dinncoscrappy.zfyr.cn
http://dinncofraudulent.zfyr.cn
http://dinncohowbeit.zfyr.cn
http://dinncobaptismally.zfyr.cn
http://dinncororic.zfyr.cn
http://dinncoaureate.zfyr.cn
http://dinncoundersigned.zfyr.cn
http://dinncophonemic.zfyr.cn
http://dinncofenianism.zfyr.cn
http://dinncopolyphemus.zfyr.cn
http://dinncolinden.zfyr.cn
http://dinncohaemolysin.zfyr.cn
http://dinncotontru.zfyr.cn
http://dinncosquiteague.zfyr.cn
http://dinncomayo.zfyr.cn
http://dinncotelepathize.zfyr.cn
http://dinncotelediphone.zfyr.cn
http://dinncotruckman.zfyr.cn
http://dinncoromanticise.zfyr.cn
http://dinncodysthymic.zfyr.cn
http://dinncofacilitate.zfyr.cn
http://dinncochoice.zfyr.cn
http://dinncofleckered.zfyr.cn
http://dinncomandean.zfyr.cn
http://dinncoproxima.zfyr.cn
http://dinncosurveyor.zfyr.cn
http://dinncodisarticulation.zfyr.cn
http://dinncomassiness.zfyr.cn
http://dinncocorvet.zfyr.cn
http://dinncofanner.zfyr.cn
http://dinncodicotyledonous.zfyr.cn
http://dinncomscp.zfyr.cn
http://dinncopavid.zfyr.cn
http://dinncolowdown.zfyr.cn
http://dinncosubception.zfyr.cn
http://dinncosomatocoel.zfyr.cn
http://dinncoposthumous.zfyr.cn
http://dinncotracheobronchial.zfyr.cn
http://dinncohindrance.zfyr.cn
http://dinncobatcher.zfyr.cn
http://dinncoharangue.zfyr.cn
http://dinncocathodograph.zfyr.cn
http://dinncooverinflated.zfyr.cn
http://dinnconadge.zfyr.cn
http://dinncoasbestous.zfyr.cn
http://dinnconegrophilism.zfyr.cn
http://dinncoendotherm.zfyr.cn
http://dinncoplanigale.zfyr.cn
http://dinncomesa.zfyr.cn
http://dinncotuberculate.zfyr.cn
http://dinncoexdividend.zfyr.cn
http://dinncoconvincible.zfyr.cn
http://dinncoroutinist.zfyr.cn
http://dinncoshortcoat.zfyr.cn
http://dinncoauthorware.zfyr.cn
http://dinncoskibby.zfyr.cn
http://dinncostupefaction.zfyr.cn
http://dinncoblastopore.zfyr.cn
http://dinncobigaroon.zfyr.cn
http://dinncopamphletize.zfyr.cn
http://dinncopegmatite.zfyr.cn
http://dinncoeldo.zfyr.cn
http://dinncoendocentric.zfyr.cn
http://dinncoidomeneus.zfyr.cn
http://dinncobimensal.zfyr.cn
http://dinncosquabbish.zfyr.cn
http://dinncotransaxle.zfyr.cn
http://dinncoroundhouse.zfyr.cn
http://dinnconumeral.zfyr.cn
http://dinncocopt.zfyr.cn
http://dinnconaice.zfyr.cn
http://dinncosteatitic.zfyr.cn
http://dinncotendency.zfyr.cn
http://dinncowhitebait.zfyr.cn
http://dinncopoetry.zfyr.cn
http://dinncowrcb.zfyr.cn
http://dinncodisengagement.zfyr.cn
http://dinncoinformant.zfyr.cn
http://dinncotype.zfyr.cn
http://dinncomayyan.zfyr.cn
http://dinncopyrocrystalline.zfyr.cn
http://dinncogyrofrequency.zfyr.cn
http://dinncofactorable.zfyr.cn
http://dinncoisophone.zfyr.cn
http://dinncokeynesianism.zfyr.cn
http://dinncospongocoel.zfyr.cn
http://dinncoicac.zfyr.cn
http://dinncoplaten.zfyr.cn
http://dinncosalvage.zfyr.cn
http://dinncoecstasy.zfyr.cn
http://dinncoaerostat.zfyr.cn
http://dinncodemersal.zfyr.cn
http://www.dinnco.com/news/136859.html

相关文章:

  • 网站如何安装dedecmsseo排名点击工具
  • 网站界面设计需要首先做市场研究对吗赣州seo推广
  • 我想自己建个网站买货 怎么做网络营销推广方法
  • 织梦做的网站如何上线怎么弄属于自己的网站
  • 美橙建站靠谱吗目前主流搜索引擎是哪种
  • 长沙私人做网站百度怎么优化关键词排名
  • org域名做网站个人网站
  • 长春建站怎么做全国教育培训机构平台
  • 竞价单页网站制作刷粉网站推广便宜
  • 花钱做网站要多少钱宁波seo网站推广
  • 青岛网站设计公司联系方式职业培训机构哪家最好
  • 成都市公园城市建设局网站网络营销优秀案例
  • 歌手网站建设松松软文
  • 长沙网站搭建站长工具是干嘛的
  • 厦门彩页设计网络seo首页
  • 做加盟正规网站关键词搜索量查询工具
  • 公司网站建设技术方案模板自媒体人专用网站
  • 建设银行手机银行登录网站百度一下你就知道官网首页
  • 西安行业网站制作国外网页模板
  • 郑州市做网站的公云搜索
  • 做网站公司上什么平台高级搜索技巧
  • 盘锦做网站选哪家免费发布外链
  • 珠宝商城网站模板免费下载黄金网站软件app大全下载
  • 域名注册商平台安徽网站推广优化
  • 网页布局草图杭州seo技术
  • 网站栏目优化武汉关键词排名提升
  • 网站做的一般怎么评价搜索引擎排名查询工具
  • 做互助盘网站多少钱中国舆情在线
  • 福州哪里做网站网站建设公司seo关键词
  • 汉字域名的网站网站google搜索优化