Linux CentOs7.5 安装Nginx1.6.3后再安装其他模块ngx_http_ssl_module

nginx: [emerg] the “ssl” parameter requires ngx_http_ssl_module in /usr/local/ng inx/conf/nginx.conf:133

今天配置证书的时候nginx提示需要ngx_http_ssl_module这个模块,因为之前安装nginx的时候都是默认安装的,没有安装其他的一些模块,所以现在刚好要用到ngx_http_ssl_module这么一个模块,现在来安装他

1.查看之前的配置信息,在configure arguments: 后面,这次是在原来配置的基础上添加,所以等下配置的时候在后面补上 --with-http_ssl_module
1) /usr/local/nginx/sbin/nginx -V
2) 其中有一行是configure arguments: 这些都是之前的配置

在这里插入图片描述

2.关闭nginx服务
1) /usr/local/nginx/sbin/nginx -s stop
3.去之前安装nginx的源码包下面配置一下需要开启的模块
1) cd /xxxxxxx(之前解压出来的nginx源码目录)
2) ./configure --prefix=/usr/local/nginx  --with-http_ssl_module
3) make 就行了,不需要重新安装
4) 替换原来的nginx  cp ./objs/nginx /usr/local/nginx/sbin/
4.重新启动nginx查看已安装的模块出现–with-http_ssl_module
1)/usr/local/nginx/sbin/nginx
2) /usr/local/nginx/sbin/nginx -V
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值