nginx报错:./configure: error: SSL modules require the OpenSSL library. You can either

这篇具有很好参考价值的文章主要介绍了nginx报错:./configure: error: SSL modules require the OpenSSL library. You can either。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

nginx报错:./configure: error: SSL modules require the OpenSSL library. You can either

在nginx中配置监听443端口后重新加载配置文件出现此报错,

原因:未安装 ngx_http_ssl_module 模块

解决方法:文章来源地址https://www.toymoban.com/news/detail-751358.html

#执行命令查看nginx是否安装了 ngx_http_ssl_module
/app/nginx/sbin/nginx -V

#出现以下内容则说明未安装 ngx_http_ssl_module
nginx version: nginx/1.18.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 
configure arguments: --prefix=/app/nginx

#找到nginx安装目录,我的目录在/install/nginx/nginx-1.18.0,依次执行以下命令
cd /install/nginx/nginx-1.18.0
./configure --prefix=/usr/local/nginx
./configure --with-http_ssl_module
#这里若出现报错提示以下信息:
#/configure: error: SSL modules require the OpenSSL library.
#You can either do not enable the modules, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source with nginx by using --with-openssl= option.
#说明未安装Openssl
#可通过yum安装
yum install openssl openssl-devel -y
#安装完成后再次执行./configure --with-http_ssl_module

#最后编译
make && make install

#编译完成后可通过命令查看ngx_http_ssl_module是否安装成功
/usl/local/nginx/sbin/nginx -V

#出现以下内容则安装完成
#nginx version: nginx/1.18.0
#built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 
#configure arguments: --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_stub_status_module

#将原始的/app/nginx/sbin/nginx进行备份
mv /app/nginx/sbin/nginx /app/nginx/sbin/nginx-bak
cp /usr/local/nginx/sbin/nginx /app/nginx/sbin/nginx

#启动nginx,并指定配置文件为/app/nginx/conf/nginx.conf
/app/nginx/sbin/nginx -c /app/nginx/conf/nginx.conf

到了这里,关于nginx报错:./configure: error: SSL modules require the OpenSSL library. You can either的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • SSL modules require the OpenSSL library

    背景: 我在源码安装nginx的时候进行 ./configure 构建结果包错,说需要OpenSSL library 1、在有网络的情况下,在线安装 2、在无网络的情况下,下载openssl上传到服务器,在编译的时候指定路径 Openssl 下载地址 这次下载使用openssl-1.0.2k版本 安装完可以将openssl加入到环境变量 在ngi

    2024年02月15日
    浏览(30)
  • ./configure: error: the HTTP rewrite module requires the PCRE library.

    ./configure: error: the HTTP rewrite module requires the PCRE library. 这个错误提示告诉你,在运行 configure 脚本时遇到了问题,原因是 HTTP rewrite 模块需要 PCRE 库的支持。 PCRE (Perl Compatible Regular Expressions) 是一种用来处理正则表达式的库,它主要用于文本搜索和替换。 要解决这个问题,你需

    2024年01月23日
    浏览(30)
  • ./configure: error: the HTTP XSLT module requires the libxml2/libx ubuntu

    一直服务器好好的用的宝塔面板,最近换了一台服务器,还是ubuntu系统盘,什么也没有改结果安装完宝塔面板,怎么也装不上nginx,看了下日志,提示: ./configure: error: the HTTP XSLT module requires the libxml2/libxslt librar 解决办法: 用的以上代码一下就好了,特此记录,一下记录是出现

    2024年02月13日
    浏览(35)
  • 解决WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python

    目录 解决WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python不可用 的问题 问题描述 解决方案 1. 检查Python环境 2. 安装所需的依赖 对于Debian/Ubuntu系统: 对于Fedora/CentOS系统: 对于MacOS系统: 对于Windows系统: 3. 重新安装Python环境 4. 使用另一个包管理器

    2024年02月05日
    浏览(47)
  • 已解决WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python

    已解决(pip升级报错) WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: pip in e:anacondainstall_rootlibsite-packages (21.0.1) WARNING: Retrying (Retry(total=4, connect=None, read=None, redi

    2024年02月02日
    浏览(36)
  • 解决错误:pip is configured with locations that require TLS/SSL,the ssl module in Python is not available

    解决错误:pip is configured with locations that require TLS/SSL,the ssl module in Python is not available。 pip安装包出现错误类似如下: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting protobuf=4.25.2 (fr

    2024年02月19日
    浏览(35)
  • nginx异常:the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf

    待修改完善 - 仅备份 操作前必须先备份原有的nginx。 编译开始根据如下: 1.示例:nginx的安装目录是/usr/local/nginx,源码包在/root/nginx-1.10.1目录下。 2.切换到源码包: 3.进行编译: 4.配置完成后,运行命令: 5.make命令执行后,不要进行make install,否则会覆盖安装。 6.备份原有

    2024年02月05日
    浏览(37)
  • 【阿里云 centos7安装python3.12遇到的坑,openssl】Could not build the ssl module! Python requires a OpenSSL 1.1.1

    基于源码安装python 3.12,执行 make 出现如下错误 问题大概描述:找不到ssl模块。该问题如果不解决的话,缺少 OpenSSL 模块可能会影响许多涉及网络通信和安全加密的 Python 应用程序和库。例如:ssl,request模块等好多模块都没法使用。所以要要去openssl官网下载安装,再来安装p

    2024年04月28日
    浏览(21)
  • Nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf

      出现上面标题中的问题是因为我当初在安装Nginx的时候没有安装SSL模块,但是现在我在Nginx配置文件(nginx.cnf)中配置了SSL的相关配置信息。当我再次启动Nginx的时候就提示我 nginx: [emerg] the \\\"ssl\\\" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:111 了。下面我将我的解

    2024年02月07日
    浏览(31)
  • [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:35

    这个错误提示表明在Nginx配置文件(通常是nginx.conf)中使用了SSL(Secure Sockets Layer)相关的配置,但是Nginx没有加载相应的SSL模块。 1.检查Nginx是否编译了SSL模块: /usr/local/nginx/sbin/nginx -V 21 | grep --color=auto ssl /usr/local/nginx/sbin/nginx:安装nginx的绝对路径 输出以下结果 则为安装已

    2024年03月16日
    浏览(42)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包