VPS侦探论坛

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

lnmp的openssl是静态编译吗

[复制链接]
发表于 2016-11-30 19:31:08 | 显示全部楼层 |阅读模式

下载openssl最新源码包编译更新后openssl version命令查看发现openssl版本已经是最新的了
但是 nginx -V里面的openssl版本还是老版本
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-12-1 08:53:25 | 显示全部楼层


lnmp1.3及之前默认是动态编译的,如果你在安装前加上了--with-openssl=源码目录就变成静态编译的了,你系统再怎么变都不影响nginx里的openssl版本
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-12-1 09:25:32 | 显示全部楼层

原帖由 licess 于 2016-12-1 08:53 发表
lnmp1.3及之前默认是动态编译的,如果你在安装前加上了--with-openssl=源码目录就变成静态编译的了,你系统再怎么变都不影响nginx里的openssl版本
军哥,我想问下 LNMP安装成功后,还要为Nginx添加新模块,详细步骤是什么...

[ 本帖最后由 ztoxie 于 2016-12-1 09:27 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-12-1 20:36:33 | 显示全部楼层

回复 3# 的帖子




提问前先搜索

https://bbs.vpser.net/viewthread.php?tid=12832&page=1&fromuid=3#pid38848
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-12-1 22:06:04 | 显示全部楼层

原帖由 licess 于 2016-12-1 20:36 发表
提问前先搜索

https://bbs.vpser.net/viewthread.php?tid=12832&page=1&fromuid=3#pid38848

嗯 ,好的。还有一个问题,nginx添加 ngx_pagespeed 的时候,出现 module ngx_pagespeed requires the pagespeed optimization library.
按照网上的方法 下载了 psol 库,但是还是提示 requires library
cd ngx_pagespeed
wget https://dl.google.com/dl/page-speed/psol/1.11.33.4.tar.gz
tar -xzvf 1.11.33.4.tar.gz && rm -rf 1.11.33.4.tar.gz

我的系统是 搬瓦工的 Centos 6-x64_86-minimal
编译参数是
--user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module --with-ld-opt=-ljemalloc --with-openssl=/root/lnmp1.3/src/openssl --add-module=/root/lnmp1.3/src/ngx_pagespeed

[ 本帖最后由 ztoxie 于 2016-12-2 13:18 编辑 ]

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

发表于 2016-12-2 09:10:45 | 显示全部楼层

回复 5# 的帖子


可能放的目录不对
 楼主| 发表于 2016-12-2 13:22:44 | 显示全部楼层

原帖由 licess 于 2016-12-2 09:10 发表
可能放的目录不对
我换了个 centos 7-x86_64-minimal 系统编译能通过...
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-28 09:22 , Processed in 0.027546 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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