Ningx SPDY is not enabled 求破

2014-01-28 18:42:12 +08:00
 XXOO
nginx: [warn] nginx was built without OpenSSL NPN support, SPDY is not enabled
3203 次点击
所在节点    NGINX
5 条回复
dorentus
2014-01-28 18:54:09 +08:00
XXOO
2014-01-28 19:41:43 +08:00
@dorentus 替换默认 nginx 是吗
LazyZhu
2014-01-28 19:43:32 +08:00
OpenSSL 版本必须 1.0.1 以后,可以编译时指定 --with-openssl=
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
2014-01-28 21:33:40 +08:00
@LazyZhu good ok了。谢谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/98589

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX