nginx的--openssl版本升级

对于只想改变nginx中的openssl模块,可以重新指定openssl版本的安装路径,并重新加载


指定安装路径,就不需要使用root权限, 使用普通安装用户即可


安装版本为: openssl-1.0.2l


安装步骤: 

1:进行版本解压

tar -zxvf  openssl-1.0.2l.tar.gz

2:  指定安装路径

[ xxxxxxxxxxxxxx openssl-1.0.2l]$ pwd
/xxxxxxxxx/soft/apache_soft/openssl-1.0.2l
[migu_pps@LS-MGHJ-PPS-VM-102-84 openssl-1.0.2l]$ ./config  --prefix=/xxxxxx/soft/apache_soft/openssl-1.0.2l/ssl

3: 进行编译和安装

[xxxxxxx openssl-1.0.2l]$ make 

[xxxxxxx openssl-1.0.2l]$ make  install 


openssl安装完成后, 对nginx进行重新编译

在重新编译前,需要找到进行安装时的nginx解压包的源码包路径


进行nginx 重新编译。 

./configure./configure
--prefix=/opt/aspire/product/migu_pps/nginx --conf-path=/opt/aspire/product/migu_pps/nginx/conf/nginx.conf --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --with-openssl=/opt/aspire/product/migu_pps/soft/apache_soft/openssl-1.0.2l/

编译时保留以前的编译数据,然后把最新的openssl版本替换上就行了。 


编译后进行检查 : 

[xxxxxxx sbin]$ ./nginx -V
nginx version: mgws
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
built with OpenSSL 1.0.2l  25 May 2017
TLS SNI support enabled
configure arguments: --prefix=/xxxxxxx/nginx --conf-path=/xxxxx/nginx/conf/nginx.conf --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --with-openssl=/xxxxxx/soft/apache_soft/openssl-1.0.2l/
[xxxxxx sbin]$


如下需要修改系统的openssl版本,需要替换系统中的一些文件信息, 可以在,更多 文章里面查看,或者直接以root安装,然后赋予普通用户权限即可。





./configure
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值