当前位置: 首页 > news >正文

一个一起做网站石家庄疫情防控最新政策

一个一起做网站,石家庄疫情防控最新政策,网站一般有哪些模块,商城网站开发制作问题现象 源码编译安装nginx时,执行./configure …… --with-http_ssl_module 命令安装https模块,需要用到openssl,由于机器缺少openssl库,报如下错误。 …… checking for openat(), fstatat() ... found checking for getaddr…

问题现象

源码编译安装nginx时,执行./configure …… --with-http_ssl_module 命令安装https模块,需要用到openssl,由于机器缺少openssl库,报如下错误。

……
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
checking for PCRE2 library ... not found
checking for PCRE library ... found
checking for PCRE JIT support ... found
checking for OpenSSL library ... not found
checking for OpenSSL library in /usr/local/ ... not found
checking for OpenSSL library in /usr/pkg/ ... not found
checking for OpenSSL library in /opt/local/ ... not found./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=<path> option.

排查分析

因为机器不能连接外网,采用离线安装rpm 包的方式,安装openssl
从网上下载了:
openssl-1.0.2k-26.el7_9.x86_64.rpm
openssl-devel-1.0.2k-26.el7_9.x86_64.rpm

使用以下命令安装:
sudo rpm -ivh openssl-1.0.2k-26.el7_9.x86_64.rpm --nodeps --force
sudo rpm -ivh openssl-devel-1.0.2k-26.el7_9.x86_64.rpm --nodeps --force

openssl安装后,openssl命令正常。但是执行./configure …… --with-http_ssl_module 还是报一样的错误。

在网上搜罗了一堆方法,改各种文件,都没有生效。

此时,严重怀疑是使用rpm 离线安装openssl库时,由于使用了–nodeps --force 这两个指令,忽略了openssl的依赖库,强制安装。导致openssl某些依赖,没有安装成功,从而导致openssl不可用。

于是再次认真阅读提示信息: or build the OpenSSL library statically from the source with nginx by using --with-openssl= option.

那就尝试一下吧,使用openssl源码静态库的方式来编译nginx。

解决方法

从openssl官网下载源码,使用–with-openssl= 的方式来编译安装。
下载地址:https://www.openssl.org/source/old/index.html

本人使用的centos 7,下载的是1.1.0k这个版本。
在这里插入图片描述
下载后解压,假如此处解压的目录是:/data/openssl-1.1.0k
那么执行:./configure --prefix=/data/nginx --with-http_stub_status_module --with-http_ssl_module --with-openssl=/data/openssl-1.1.0k
以上命令,可顺利通过。

接下来,执行:make && make install 就顺利编译通过了。

总结

  • 原因:可能是使用rpm 离线安装openssl库时,由于使用了–nodeps --force 这两个指令,忽略了openssl的依赖库,强制安装。导致openssl某些依赖,没有安装成功,从而导致openssl不可用。
  • 解决方法
    1)下载openssl 源码包
    2)解压到指定目录/data/openssl-1.1.0k
    3)执行./configure 时,添加–with-openssl=/data/openssl-1.1.0k参数

至此,问题成功解决。

http://www.mmbaike.com/news/82078.html

相关文章:

  • 怎么用自己的电脑做服务器发布网站厨师培训学校
  • 东莞企业营销型网站建设网络服务商主要包括哪些
  • 戴尔电脑网站建设方案范文百度联盟怎么加入
  • 深圳网站建设培训班市场调研的方法
  • 深圳做外贸网站公司百度广告点击一次多少钱
  • 华为云怎么做网站青岛网站建设制作推广
  • 网站首页psd格式怎么做关键词完整版
  • 珠海制作公司网站搜狗网页
  • 怎么做兼职网站吗优化服务是什么意思
  • 大连网站推广爱得科技亚洲卫星电视网参数表
  • 南宁企业建站系统爱站网seo培训
  • 网络服务商是谁怎么优化关键词
  • 大型b2b电子商务平台开发苏州优化网站公司
  • 做电影网站一年赚多少钱西安优化seo托管
  • 怎么给网站带来流量产品推广平台有哪些
  • 怎么做企业网站推广赚钱nba排名赛程
  • 网站建设主流技术微信营销方式有哪些
  • 外贸网站建设哪家有名b2b平台推广网站
  • 怎样做网站宣传自己的宾馆站长工具seo综合查询5g
  • 求职网站开发360seo关键词优化
  • 郑州经纬网络做网站吗友情链接2598
  • 湖南+网站建设百度浏览器网址是多少
  • 网站编程入门教程做网站优化推广
  • 网站的佣金怎么做会计分录百度商城官网
  • 济南网站建设-中国互联企业网站推广渠道
  • app搭建要多少钱搜索引擎优化的工具
  • 新网站seo百度seo官方网站
  • 做评测好的视频网站有哪些百度世界排名
  • vs2010网站制作教程免费网页在线客服系统代码
  • 外贸接单批发十大网站广告网络