VPS侦探论坛

 找回密码
 注册
查看: 4195|回复: 6

lnmp1.5默认安装SSL出错,求助下军哥!

[复制链接]
发表于 2018-5-19 14:00:42 | 显示全部楼层 |阅读模式

lnmp1.5默认安装SSL出错,不知道怎么回事

Starting nginx... nginx: [emerg] invalid parameter "http2" in /usr/local/nginx/conf/vhost/www.xxx.cn.conf:41

[ 本帖最后由 jj168abc 于 2018-5-19 14:03 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-5-19 21:27:13 | 显示全部楼层


修改过nginx版本吗,nginx -V 看一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-5-19 21:35:12 | 显示全部楼层

因为启用了Lua,所以升级到了1.7.8版的nginx

nginx -V
nginx version: nginx/1.7.8
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
TLS SNI support enabled
configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_spdy_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module --with-openssl=/root/lnmp1.5/src/openssl-1.0.2o --with-ld-opt=-Wl,-rpath,/usr/local/luajit/lib --add-module=/root/lnmp1.5/src/lua-nginx-module-0.10.11 --add-module=/root/lnmp1.5/src/ngx_devel_kit-0.3.0
[root@liuyuee ~]#
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-5-20 09:11:01 | 显示全部楼层

回复 3# 的帖子




你这明明是降级,1.7.8是多少年前的版本的了,而且都不是正式稳定版的,肯定不支持http2,肯定报错了 http://nginx.org/en/download.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-5-20 10:21:04 | 显示全部楼层

军哥,Lnmp1.5版默认的nginx版本是多少呢?

我刚重新升级到了nginx1.8.1版还是报错

军哥运维代购:http://shop63846532.taobao.com/

发表于 2018-5-20 20:01:27 | 显示全部楼层

1.14.0 上面都给你发nginx官网地址了
 楼主| 发表于 2018-5-20 21:14:39 | 显示全部楼层

已经完美解决,谢谢军哥。:victory:
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-24 05:28 , Processed in 0.038878 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表