V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
XXOO
V2EX  ›  NGINX

Ningx SPDY is not enabled 求破

  •  
  •   XXOO · 2014-01-28 18:42:12 +08:00 · 3200 次点击
    这是一个创建于 3739 天前的主题,其中的信息可能已经有所发展或是发生改变。
    nginx: [warn] nginx was built without OpenSSL NPN support, SPDY is not enabled
    5 条回复    1970-01-01 08:00:00 +08:00
    XXOO
        2
    XXOO  
    OP
       2014-01-28 19:41:43 +08:00
    @dorentus 替换默认 nginx 是吗
    LazyZhu
        3
    LazyZhu  
       2014-01-28 19:43:32 +08:00
    OpenSSL 版本必须 1.0.1 以后,可以编译时指定 --with-openssl=
    dorentus
        4
    dorentus  
       2014-01-28 20:15:55 +08:00
    @XXOO
    其实是这样,如果你的 nginx 是自己编译的,那么如三楼所说,你可以自己下载新版本的 openssl 源码,然后在编译时指定 --with-openssl= [解压好的 openssl 源码目录] 来使用新版本的 openssl 编译。

    ----
    至于我上面贴的,是我自己静态编译的 nginx/1.5.9 + SPDY 3.1 patch + openssl-1.0.1f。
    两个分别是 x86_64 和 x86 的。
    目录设置使用了 debian 的惯例,debian 和 ubuntu 下应该是替换了你默认的 /usr/sbin/nginx 之后可以直接用的(不过用之前最好检查下有没有你需要的模块没有编译进去、其它 linux 用之前更要检查下它需要的目录有没有创建之类)。

    ----
    编译参数如下:
    nginx version: nginx/1.5.9
    built by clang 3.5-1 (trunk) (based on LLVM 3.5)
    TLS SNI support enabled
    configure arguments: --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --with-pcre-jit --with-debug --with-http_addition_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_spdy_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-ipv6 --with-mail --with-mail_ssl_module --add-module=../modules/headers-more-nginx-module --add-module=../modules/nginx-cache-purge --add-module=../modules/nginx-dav-ext-module --add-module=../modules/nginx-development-kit --add-module=../modules/nginx-echo --add-module=../modules/ngx-fancyindex --add-module=../modules/nginx-upload-progress --add-module=../modules/nginx-upstream-fair --add-module=../modules/ngx_http_substitutions_filter_module --with-cc=clang --with-cpp=clang++ --with-cc-opt=-Ofast --with-ld-opt=-static --with-openssl=../openssl-1.0.1f
    XXOO
        5
    XXOO  
    OP
       2014-01-28 21:33:40 +08:00
    @LazyZhu good ok了。谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3267 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:52 · PVG 19:52 · LAX 04:52 · JFK 07:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.