国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

nginx安裝時(shí)配置出錯(cuò)openssl library in … not found和error: SSL modules require the OpenSSL library. 的徹底解決

這篇具有很好參考價(jià)值的文章主要介紹了nginx安裝時(shí)配置出錯(cuò)openssl library in … not found和error: SSL modules require the OpenSSL library. 的徹底解決。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

目? ? ? ? ? ? 錄

一、問題描述(錯(cuò)誤現(xiàn)象描述)

二、問題查處過程

1、查看openssl的版本

2、定位openssl所在目錄

3、配置參數(shù)加上 openssl的目錄

4、重裝openssl

三、問題解決

1、openssl庫路徑匹配

2、--with-openssl路徑配置


一、問題描述(錯(cuò)誤現(xiàn)象描述)

????????我們的程序原來正常運(yùn)行,由于客戶服務(wù)器做了系統(tǒng)更新(具體更新什么,客戶也不知道)。導(dǎo)致我們的nginx運(yùn)行出現(xiàn)錯(cuò)誤

nginx: [emerg] the “ssl” parameter requires ngx_http_ssl_module in /home/nginx. conf:83

?????????想了很多辦法處理,都沒有處理好,最后只有在客戶的環(huán)境重新編譯nginx。

????????在重新編譯Nginx的過程中,第一步配置./configure 就出現(xiàn)了錯(cuò)誤,如下:

./configure? --prefix=/home/nginx-bin --with-http_ssl_module?

……………………………

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.

? ? ? ?注:客戶服務(wù)器操作系統(tǒng)是 Red Hat Enterprise Linux 7.6

二、問題查處過程

1、查看openssl的版本

?????? 看錯(cuò)誤提示,應(yīng)該 是nginx沒有找到系統(tǒng)的中openssl的庫文件,是不是ssl沒有安裝好?于是調(diào)用openssl version,能夠清楚看到openssl版本

[root@localhost home]# openssl version
OpenSSL 1.0.2k-fips? 26 Jan 2017
[root@localhost home]#

?????? 顯然,openssl是安裝好的。

2、定位openssl所在目錄

????????那就有可能是openssl的路徑問題了,nginx安裝程序找到的路徑是錯(cuò)誤的。

?????? 通過whereis openssl查找安裝路徑,如下命令,可以找到多個(gè)路徑。

[root@localhost home]# whereis openssl

openssl: /usr/bin/openssl /usr/lib64/openssl /usr/include/openssl /usr/share/man/man1/openssl.1ssl.gz

[root@localhost home]#

?????? 然后查找對(duì)應(yīng)的openssl 的文件,找出路徑為/usr/include/openssl,如下:

[root@localhost? home]#
[root@localhost? home]# find / -name? ssl.h
/usr/include/openssl/ssl.h
[root@localhost? home]#

????????因此可以確定,原來系統(tǒng)文件的庫文件路徑是/usr/include/openssl,顯然前面命令提示的,在/usr/local/等路徑上都找不到,主要是路徑錯(cuò)誤。

3、配置參數(shù)加上 openssl的目錄

?????? 于是,在nginx配置configure? 上增路徑,如下

./configure --prefix=/home/nginx-bin --with-http_ssl_module --with-openssl=/usr/include/openssl

??????配置問題過程,一切正常,錯(cuò)誤不在,但是出現(xiàn)的新的錯(cuò)誤:??????

[root@localhost nginx-1.18.0]# make
make -f objs/Makefile
make[1]: 進(jìn)入目錄“/home/nginx-1.18.0”
cd /usr/include/openssl \
&& if [ -f Makefile ]; then make clean; fi \
&& ./config --prefix=/usr/include/openssl/.openssl no-shared no-threads? \
&& make \
&& make install_sw LIBDIR=lib
/bin/sh:行2: ./config: 沒有那個(gè)文件或目錄
make[1]: *** [/usr/include/openssl/.openssl/include/openssl/ssl.h] 錯(cuò)誤 127
make[1]: 離開目錄“/home/nginx-1.18.0”
make: *** [build] 錯(cuò)誤 2
[root@localhost nginx-1.18.0]#

4、重裝openssl

?????? 又出現(xiàn)新的問題,還是徹底一些,重裝openssl吧!

? ? ? ?(1)首先登錄openssl的官網(wǎng):

????????????????openssl的官網(wǎng)(https://www.openssl.org)

? ? ? ? (2)然后進(jìn)入openssl的舊版本路徑 :

???????????????????? [ Old Releases ] - /source/old/index.html

? ? ? ? (3)由于我以前的系統(tǒng)是OpenSSL 1.0.2k的版本,所以我盡量下載OpenSSL 1.0.2k或者一戶的版本。我下載的還是OpenSSL 1.0.2k的版本,下載后安裝,過程比較簡(jiǎn)單:

????????????????./configure

?????? ????????Make && make install

????????比較順利,一切正常。

三、問題解決

?????? 重裝openssl,nginx編譯還是有點(diǎn)問題,又做了如下兩項(xiàng)工作,才徹底解決問題:

1、openssl庫路徑匹配

?????? 編譯新的openssl時(shí),openssl庫路徑?jīng)]有和nginx編譯配置的路徑匹配好,導(dǎo)致無法找到openssl的庫文件,造成的編譯的configure出錯(cuò)。

?????? 因此要修改nginx中openssl的配置文件,找到nginx安裝目錄下的文件“uto/lib/openssl/conf”,然后進(jìn)行編輯:

nginx安裝時(shí)配置出錯(cuò)openssl library in … not found和error: SSL modules require the OpenSSL library. 的徹底解決,nginx,ssl,服務(wù)器,openssl,configure,配置錯(cuò)誤,library

????????把lib修改為正確的lib64,如下圖:

nginx安裝時(shí)配置出錯(cuò)openssl library in … not found和error: SSL modules require the OpenSSL library. 的徹底解決,nginx,ssl,服務(wù)器,openssl,configure,配置錯(cuò)誤,library

2、--with-openssl路徑配置

??????????--with-openssl=<dir> 需要指定openssl庫源路徑,所以要把這個(gè)參數(shù)設(shè)定為“openssl 安裝文件的所在路徑”,因此,改動(dòng)如下:

./configure --prefix=/home/nginx-bin --with-http_ssl_module --with-openssl=/home/nginx1180/openssl-1.0.2k

????????沒有出錯(cuò),接著make && make install,一切過程順利,最后生成可以運(yùn)行的nginx文件。

????????把nginx執(zhí)行文件替換原來的nginx文件,正常運(yùn)行。

????????這次問題得到徹底解決。

若想了解更多,可以“點(diǎn)擊” 下面的 “威迪斯特?微信名片”,就會(huì)出現(xiàn)我的二維碼文章來源地址http://www.zghlxwxcb.cn/news/detail-842194.html

到了這里,關(guān)于nginx安裝時(shí)配置出錯(cuò)openssl library in … not found和error: SSL modules require the OpenSSL library. 的徹底解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • ./configure: error: SSL modules require the OpenSSL library. You can either do not enable the module

    ?Ubuntu22系統(tǒng),參考nginx文檔Support for QUIC and HTTP/3?執(zhí)行如下命令: 時(shí)報(bào)錯(cuò)如下: 但其實(shí)系統(tǒng)是有openssl庫的: ? ?out git:(v1.1.0) ? openssl version OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022) 必應(yīng)了一下,參考了這兩個(gè):https://forum.nginx.org/read.php?2,299223??#2605 (NGINX + BoringSSL b

    2024年04月27日
    瀏覽(27)
  • A fatal error occurred. The required library hostfxr.dll could not be found.錯(cuò)誤處理

    一個(gè)可控制臺(tái)程序使用.NET 6開發(fā),發(fā)行版運(yùn)行出現(xiàn)如下錯(cuò)誤: A fatal error occurred. The required library hostfxr.dll could not be found. If this is a self-contained application, that library should exist in [D:xxxServer]. If this is a framework-dependent application, install the runtime in the global location [C:Program Files (x86)d

    2024年02月12日
    瀏覽(28)
  • Nginx報(bào)錯(cuò)host not found in upstream解決辦法

    項(xiàng)目說明 前后臺(tái)分離項(xiàng)目,后臺(tái)所屬空間沒有存儲(chǔ)圖片,放置前臺(tái)空間存儲(chǔ),后臺(tái)需要查看圖片,借助proxy_pass。對(duì)應(yīng)配置如下 test.conf test.htaccess 當(dāng)初配置完成的時(shí)候,啟動(dòng)nginx并沒有問題,但是重啟系統(tǒng)之后,nginx卻是啟動(dòng)不起來,報(bào)錯(cuò)為 如果依照?qǐng)?bào)錯(cuò)去找答案,肯定會(huì)是

    2024年02月13日
    瀏覽(30)
  • Error in onLoad hook: “ReferenceError: plus is not defined“ found in

    Error in onLoad hook: “ReferenceError: plus is not defined“ found in

    項(xiàng)目背景如下所示: 使用 HBuilder X 開發(fā) 項(xiàng)目, 調(diào)整頁面時(shí),直接運(yùn)行到 瀏覽器查看頁面設(shè)置效果,導(dǎo)致控制臺(tái)出現(xiàn)下述報(bào)錯(cuò)信息 例如: 遇到的問題如下所示: APP 中接收數(shù)據(jù)代碼: 提示:這里填寫問題的分析: 解決方法: 通過查看報(bào)錯(cuò)日志信息,我們可以看到: 未定義

    2024年02月14日
    瀏覽(21)
  • vivado 仿真報(bào)錯(cuò):ERROR: [VRFC 10-2987] ‘xxxxx‘ is not compiled in library ‘xil_defaultlib‘

    vivado 仿真報(bào)錯(cuò):ERROR: [VRFC 10-2987] ‘xxxxx‘ is not compiled in library ‘xil_defaultlib‘

    在Design Sources窗口下,選中報(bào)錯(cuò)的IP,比如除法器,右鍵: ?選擇第一個(gè)Autumatic Update and Compile Order即可。

    2024年02月07日
    瀏覽(18)
  • elementui安裝不上,報(bào)錯(cuò):Module not found: Error: Can‘t resolve ‘element-ui/lib/theme-chalk/index.css‘ in ‘D

    elementui安裝不上,報(bào)錯(cuò):Module not found: Error: Can‘t resolve ‘element-ui/lib/theme-chalk/index.css‘ in ‘D

    elementui安裝不上,報(bào)錯(cuò):Module not found: Error: Can’t resolve ‘element-ui/lib/theme-chalk/index.css’ in \\\'D:workspaceweb-ele-uivue-managesrc’自定義目錄標(biāo)題) 使用多種辦法都沒能安裝上,在package.json文件中沒有發(fā)現(xiàn)有elementui對(duì)應(yīng)的版本號(hào) 解決方法: 1、刪除項(xiàng)目中的node_modules文件夾 2、在項(xiàng)目

    2024年02月16日
    瀏覽(31)
  • 前端報(bào)錯(cuò) : Module not found: Error: Can‘t resolve ‘xxx‘ in ‘xxx‘

    前端報(bào)錯(cuò) : Module not found: Error: Can‘t resolve ‘xxx‘ in ‘xxx‘

    Module not found: Error: Can\\\'t resolve \\\'../src/comporents/MyHeader\\\' in \\\'C:Users15718Desktopeightsrc\\\' 模塊未找到:錯(cuò)誤:無法解決../src/comporents/MyHeader\\\' 在 \\\'C:Users15718Desktopeightsrc\\\' 錯(cuò)誤原因是組件引入? App.vue/其他組件 時(shí)出錯(cuò)了,仔細(xì)檢查引入的 文件名大小寫及單詞拼寫是否正確!! ! 我的就是comp

    2024年02月09日
    瀏覽(23)
  • vue中Module not found: Error: Can‘t resolve ‘xxx’ in ‘xxx’

    該問題的出現(xiàn): ???????? 可能是下載的庫vue創(chuàng)建的時(shí)候沒有直接引入(由于使用npm直接安裝時(shí)權(quán)限不夠,而以管理員身份運(yùn)行cmd) 方法一: 以管理員身份進(jìn)入cmd后,切換到你vue項(xiàng)目所在目錄,再執(zhí)行install安裝 方法二: 1、先刪除node_modules文件夾 2、然后執(zhí)行npm install命令

    2024年02月11日
    瀏覽(20)
  • 利用阿里云服務(wù)器(CentOS7.8 64位)建站時(shí)報(bào)404 Not Found nginx解決辦法以及Nginx(1.20.1)的安裝及配置全過程

    利用阿里云服務(wù)器(CentOS7.8 64位)建站時(shí)報(bào)404 Not Found nginx解決辦法以及Nginx(1.20.1)的安裝及配置全過程

    ????????這幾天在利用阿里云服務(wù)器部署自建小網(wǎng)站項(xiàng)目時(shí),發(fā)現(xiàn)這個(gè)問題:404 Not Found nginx。經(jīng)過檢查后發(fā)現(xiàn)是因?yàn)镹ginx在云服務(wù)器上還沒安裝上?,F(xiàn)準(zhǔn)備好以后解決辦法供有需要的小伙伴們參考。 ? ? ? ? 網(wǎng)站域名及備案的具體步驟我就不再一一說啦,不知道的可以看

    2024年02月04日
    瀏覽(31)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包