新版本nginx安装提示需要openssl的问题

新版本的nginx安装的时候未发现openssl的路径,有两种方式解决

方式一:

找到本地nginx的解压目录中 ,例如我的放到root下面了。

进入 /root/nginx1.24.0/auto/lib/openssl/conf 目录下修改内容 ,这两行都需要修改,原来为lib,不是lib64

下面的两个都需要修改

ngx_feature_libs="-R/usr/local/lib64 -L/usr/local/lib64 -lssl -lcrypto"

ngx_feature_libs="-L/usr/local/lib64 -lssl -lcrypto"

然后nginx重新 ./configure --prefix=你的路径 --with-ssl-module

后面就可以。

方式二:

重新下载openssl的压缩包,下载下来最好是跟你本地的openssl版本一样。相当于直接用压缩包里面的lib库

openssl-官网

bash 复制代码
tar xf openssh-9.0p1.tar.gz

nginx重新 ./configure --prefix=你的路径 --with-http_ssl_module --with-openssl=/usr/local/openssl-9.0.p1

相关推荐
jugt15 分钟前
CentOS 7.9安装Nginx1.24.0时报 checking for LuaJIT 2.x ... not found
linux·运维·centos
hunter1271 小时前
Nginx 事件驱动理解
nginx
21号 12 小时前
9.进程间通信
linux·运维·服务器
搬码临时工7 小时前
电脑同时连接内网和外网的方法,附外网连接局域网的操作设置
运维·服务器·网络
藥瓿亭7 小时前
K8S认证|CKS题库+答案| 3. 默认网络策略
运维·ubuntu·docker·云原生·容器·kubernetes·cks
Gaoithe8 小时前
ubuntu 端口复用
linux·运维·ubuntu
程序猿小D9 小时前
第16节 Node.js 文件系统
linux·服务器·前端·node.js·编辑器·vim
gsls2008089 小时前
ocrapi服务docker镜像使用
运维·docker·容器
文牧之10 小时前
PostgreSQL 的扩展pg_freespacemap
运维·数据库·postgresql
AWS官方合作商10 小时前
基于AWS Serverless架构:零运维构建自动化SEO内容生成系统
运维·serverless·aws