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

Nginx增加SSL證書時報錯:/configure: error: SSL modules require the OpenSSL library.

這篇具有很好參考價值的文章主要介紹了Nginx增加SSL證書時報錯:/configure: error: SSL modules require the OpenSSL library.。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

錯誤詳情:

/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.
Nginx增加SSL證書時報錯:/configure: error: SSL modules require the OpenSSL library.,nginx,ssl,運維

步驟1:先看下是否安裝OpenSSL依賴

注意:nginx不是全局的話需要到nginx的sbin里面執(zhí)行

nginx -V

結(jié)果:

[root@zwb ~]# nginx -V
nginx version: nginx/1.15.9
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

configure arguments中不包含** --with-http_ssl_module**這個參數(shù)的表示未安裝,否則可跳過安裝OpenSSL的步驟

步驟2:安裝OpenSSL(兩種方式)

第一種:通過yum 快速安裝

命令為:

# -y 自動安裝,需要確認全部為是,不然需要手動輸y/n
yum -y install openssl openssl-devel 

等待完成即可

第二種:內(nèi)網(wǎng)離線安裝

源碼文件下載地址:https://www.openssl.org/,進入download中,我用的是1.1所以我下載是這個,看實際情況而定
Nginx增加SSL證書時報錯:/configure: error: SSL modules require the OpenSSL library.,nginx,ssl,運維
下載好之后解壓到路徑中,記住這個路徑,一會要用?。?!

步驟3

進入Nginx的源碼包,注意是源碼包,就是你從Nginx官網(wǎng)下載然后解壓的包,里面有一個configure名字的可執(zhí)行文件,然后執(zhí)行:

通過yum安裝的
./configure --with-http_ssl_module
離線安裝的
./configure --with-http_ssl_module --with-openssl=離線解壓的路徑(上一步讓你記住的那個)

然后進行編譯:

make && make install

只用make也行,會在Nginx目錄下的objs中生成編譯文件,上述命令則會直接編譯并安裝,默認路徑為:/usr/local/nginx/sbin

步驟4

確認是否安裝成功

nginx -V

結(jié)果如下就成功了
Nginx增加SSL證書時報錯:/configure: error: SSL modules require the OpenSSL library.,nginx,ssl,運維

步驟五

給Nginx增加SSL證書,可參考https://blog.csdn.net/weixin_43672305/article/details/131858293文章來源地址http://www.zghlxwxcb.cn/news/detail-742805.html

到了這里,關(guān)于Nginx增加SSL證書時報錯:/configure: error: SSL modules require the OpenSSL library.的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • ./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日
    瀏覽(22)
  • 解決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環(huán)境 2. 安裝所需的依賴 對于Debian/Ubuntu系統(tǒng): 對于Fedora/CentOS系統(tǒng): 對于MacOS系統(tǒng): 對于Windows系統(tǒng): 3. 重新安裝Python環(huán)境 4. 使用另一個包管理器

    2024年02月05日
    瀏覽(21)
  • 已解決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

    已解決(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日
    瀏覽(23)
  • 解決錯誤: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安裝包出現(xiàn)錯誤類似如下: 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日
    瀏覽(24)
  • ./configure: error: the HTTP XSLT module requires the libxml2/libx ubuntu

    一直服務(wù)器好好的用的寶塔面板,最近換了一臺服務(wù)器,還是ubuntu系統(tǒng)盤,什么也沒有改結(jié)果安裝完寶塔面板,怎么也裝不上nginx,看了下日志,提示: ./configure: error: the HTTP XSLT module requires the libxml2/libxslt librar 解決辦法: 用的以上代碼一下就好了,特此記錄,一下記錄是出現(xiàn)

    2024年02月13日
    瀏覽(22)
  • nginx異常:the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf

    nginx異常:the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf

    待修改完善 - 僅備份 操作前必須先備份原有的nginx。 編譯開始根據(jù)如下: 1.示例:nginx的安裝目錄是/usr/local/nginx,源碼包在/root/nginx-1.10.1目錄下。 2.切換到源碼包: 3.進行編譯: 4.配置完成后,運行命令: 5.make命令執(zhí)行后,不要進行make install,否則會覆蓋安裝。 6.備份原有

    2024年02月05日
    瀏覽(23)
  • Nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf

    ??出現(xiàn)上面標(biāo)題中的問題是因為我當(dāng)初在安裝Nginx的時候沒有安裝SSL模塊,但是現(xiàn)在我在Nginx配置文件(nginx.cnf)中配置了SSL的相關(guān)配置信息。當(dāng)我再次啟動Nginx的時候就提示我 nginx: [emerg] the \\\"ssl\\\" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:111 了。下面我將我的解

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

    這個錯誤提示表明在Nginx配置文件(通常是nginx.conf)中使用了SSL(Secure Sockets Layer)相關(guān)的配置,但是Nginx沒有加載相應(yīng)的SSL模塊。 1.檢查Nginx是否編譯了SSL模塊: /usr/local/nginx/sbin/nginx -V 21 | grep --color=auto ssl /usr/local/nginx/sbin/nginx:安裝nginx的絕對路徑 輸出以下結(jié)果 則為安裝已

    2024年03月16日
    瀏覽(28)
  • 【已解決】:pip is configured with locations that require TLS/SSL

    【已解決】:pip is configured with locations that require TLS/SSL

    在使用pip進行軟件包安裝的時候出現(xiàn)問題: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 解決: 然后輸入內(nèi)容: 再次使用pip安裝即可。 參考:https://blog.csdn.net/witton/article/details/109352577?spm=1001.2101.3001.6650.15utm_medium=distribute.pc_relevant.

    2024年04月15日
    瀏覽(28)
  • SSL modules require the OpenSSL library

    SSL modules require the OpenSSL library

    背景: 我在源碼安裝nginx的時候進行 ./configure 構(gòu)建結(jié)果包錯,說需要OpenSSL library 1、在有網(wǎng)絡(luò)的情況下,在線安裝 2、在無網(wǎng)絡(luò)的情況下,下載openssl上傳到服務(wù)器,在編譯的時候指定路徑 Openssl 下載地址 這次下載使用openssl-1.0.2k版本 安裝完可以將openssl加入到環(huán)境變量 在ngi

    2024年02月15日
    瀏覽(18)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包