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

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中配置監(jiān)聽443端口后重新加載配置文件出現(xiàn)此報錯,

原因:未安裝 ngx_http_ssl_module 模塊

解決方法:文章來源地址http://www.zghlxwxcb.cn/news/detail-751358.html

#執(zhí)行命令查看nginx是否安裝了 ngx_http_ssl_module
/app/nginx/sbin/nginx -V

#出現(xiàn)以下內(nèi)容則說明未安裝 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,依次執(zhí)行以下命令
cd /install/nginx/nginx-1.18.0
./configure --prefix=/usr/local/nginx
./configure --with-http_ssl_module
#這里若出現(xiàn)報錯提示以下信息:
#/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
#安裝完成后再次執(zhí)行./configure --with-http_ssl_module

#最后編譯
make && make install

#編譯完成后可通過命令查看ngx_http_ssl_module是否安裝成功
/usl/local/nginx/sbin/nginx -V

#出現(xiàn)以下內(nèi)容則安裝完成
#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進(jìn)行備份
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

到了這里,關(guān)于nginx報錯:./configure: error: SSL modules require the OpenSSL library. You can either的文章就介紹完了。如果您還想了解更多內(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ìn)行投訴反饋,一經(jīng)查實,立即刪除!

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

相關(guān)文章

  • SSL modules require the OpenSSL library

    SSL modules require the OpenSSL library

    背景: 我在源碼安裝nginx的時候進(jìn)行 ./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)
  • ./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) 是一種用來處理正則表達(dá)式的庫,它主要用于文本搜索和替換。 要解決這個問題,你需

    2024年01月23日
    瀏覽(22)
  • ./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)
  • 解決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)
  • 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.進(jìn)行編譯: 4.配置完成后,運行命令: 5.make命令執(zhí)行后,不要進(jìn)行make install,否則會覆蓋安裝。 6.備份原有

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

    【阿里云 centos7安裝python3.12遇到的坑,openssl】Could not build the ssl module! Python requires a OpenSSL 1.1.1

    基于源碼安裝python 3.12,執(zhí)行 make 出現(xiàn)如下錯誤 問題大概描述:找不到ssl模塊。該問題如果不解決的話,缺少 OpenSSL 模塊可能會影響許多涉及網(wǎng)絡(luò)通信和安全加密的 Python 應(yīng)用程序和庫。例如:ssl,request模塊等好多模塊都沒法使用。所以要要去openssl官網(wǎng)下載安裝,再來安裝p

    2024年04月28日
    瀏覽(27)
  • 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)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包