首页 > Web开发 > 详细

php +libcurl+nghttp2 实现高性能微服务架构

时间:2019-12-30 15:08:15      阅读:143      评论:0      收藏:0      [点我收藏+]


1、server端
nginx编译时增加参数
configure --with-http_v2_module

    server {
        listen       80 http2;
        server_name  localhost;
    }

编译nghttp2包
wget https://github.com/nghttp2/nghttp2/releases/download/v1.40.0/nghttp2-1.40.0.tar.gz
./configure
make
make install

安装libcurl

wget https://curl.haxx.se/download/curl-7.67.0.tar.g
./configure  --with-nghttp2 --with-ssl  --with-zlib
make
make install

编译php

增加参数  --with-curl 即可


php +libcurl+nghttp2 实现高性能微服务架构

原文:https://www.cnblogs.com/a-xu/p/12119789.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!