alect
V2EX  ›  问与答

apache 2.4.17 应该怎么编译才能支持 http2?

  •  
  •   alect · Oct 14, 2015 · 3308 views
    This topic created in 3936 days ago, the information mentioned may be changed or developed.
    编译的时候加上选项--enable-http2 提示错误。。谁成功了?
    Supplement 1  ·  Oct 15, 2015
    手工编译失败, yum 成功。。。
    依赖 libnghttp2 ,需要先安装,之前不知为何手工编译总是失败,后来换了 yum 就可以了
    yum install libnghttp2-devel ,
    然后再编译 apache 加上--enable-http2 就成功了
    4 replies    2016-12-25 00:13:02 +08:00
    timonwong
        1
    timonwong  
       Oct 14, 2015
    mod_http2 依赖 nghttp2 ,装了没有?
    alect
        2
    alect  
    OP
       Oct 14, 2015
    @timonwong git 装了,但是装的时候提示版本小于 1.0.0 。。。
    能给个大概的配置方法吗?我应该是哪里姿势不对。。
    alect
        3
    alect  
    OP
       Oct 15, 2015
    奶奶的,手工编译失败, yum 成功。。。 yum install libnghttp2-devel ,然后再加上--enable-http2 就成功了
    Binarization
        4
    Binarization  
       Dec 25, 2016
    Apache mod_http2 至今还是实验功能
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2592 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:56 · PVG 08:56 · LAX 17:56 · JFK 20:56
    ♥ Do have faith in what you're doing.