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

Nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf

這篇具有很好參考價(jià)值的文章主要介紹了Nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

??出現(xiàn)上面標(biāo)題中的問(wèn)題是因?yàn)槲耶?dāng)初在安裝Nginx的時(shí)候沒(méi)有安裝SSL模塊,但是現(xiàn)在我在Nginx配置文件(nginx.cnf)中配置了SSL的相關(guān)配置信息。當(dāng)我再次啟動(dòng)Nginx的時(shí)候就提示我nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:111 了。下面我將我的解決方案給記錄了下來(lái),供大家參考哦!

解決問(wèn)題

首先需要申明一下,我安裝Nginx的目錄是 /usr/local/nginx/ ,當(dāng)時(shí)安裝的時(shí)候是通過(guò)源碼安裝的,所以源碼也在這個(gè)目錄下面。接下來(lái)我們會(huì)利用源碼加載 SSL 模塊重新編譯,如果你沒(méi)有源碼則可以選擇重新安裝新版 Nginx 進(jìn)行解決。

先來(lái)看看 Nginx 的版本吧:

[root@xxx ~]# /usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.16.1
...
configure arguments: 

可以看到,我這里的configure arguments: 后面沒(méi)有任何配置參數(shù)。

我們現(xiàn)在切換到源碼包目錄下面,增加SSL配置項(xiàng)進(jìn)行重新編譯:

# 切換到Nginx源碼目錄下面:
[root@xxx ~]# cd /usr/local/nginx/
# 新增SSL模塊進(jìn)行重新配置:
[root@xxx nginx]# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
# 重新編譯:
[root@xxx nginx]# make

??注意:這里不在需要執(zhí)行make install命令了,如果執(zhí)行了會(huì)覆蓋之前的安裝,會(huì)有一定的風(fēng)險(xiǎn)哦!

然后備份原有已安裝好的 nginx :

[root@xxx nginx]# cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak

停止現(xiàn)有的 Nginx 服務(wù):

[root@xxx ~]# /usr/local/nginx/sbin/nginx -s stop

然后將剛剛編譯好的 nginx 覆蓋掉原有的 nginx,剛才重新編譯好的nginx在/usr/local/nginx/objs/ 下面。

[root@xxx ~]# cp ./objs/nginx /usr/local/nginx/sbin/
# 執(zhí)行的時(shí)候會(huì)有個(gè)詢問(wèn)過(guò)程,詢問(wèn)你是否選擇覆蓋?此時(shí)輸入 `yes` 然后按`Enter`就行了。

上述執(zhí)行成功后,再執(zhí)行查看 Nginx 版本就可以看到configure arguments: 后面有新的參數(shù)了,如下:

[root@xxx nginx]# /usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.16.1
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) 
built with OpenSSL 1.0.2k-fips  26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module

通過(guò)上面控制臺(tái)返回的信息可見(jiàn)新增的SSL模塊成功了。

重新啟動(dòng)Nginx就可以啦:

# 啟動(dòng)Nginx服務(wù)
[root@xxx nginx]# /usr/local/nginx/sbin/nginx

其他

??在Linux系統(tǒng)下安裝 Nginx 服務(wù)及其配置 SSL 證書(shū)實(shí)現(xiàn) HTTPS 訪問(wèn)可以參考下面的文檔哦:

??Centos7安裝Nginx并配置

??Nginx 配置SSL證書(shū),實(shí)現(xiàn)HTTPS訪問(wèn)文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-722255.html

到了這里,關(guān)于Nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(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)文章

  • nginx配置ssl的坑(TLSv1.3\ngx_http_ssl_module)

    查看openssl版本openssl version,一般騰訊云為1.0.2k版本。 到官網(wǎng) www.openssl.org 查看最新版本openssl,現(xiàn)在最新為1.1.1h版。 下載nginx 重新make下nginx,最后openssl配置上面升級(jí)后的 完成后執(zhí)行 make 命令,make失敗執(zhí)行 make clean后重新make 配置后的nginx.config 檢查配置 nginx -t 啟動(dòng)nginx ./ngin

    2024年02月16日
    瀏覽(22)
  • Nginx啟動(dòng)報(bào)錯(cuò),nginx: [emerg] SSL_CTX_use_PrivateKey_file(“/etc/infra/data/ngx/ssl/**.key“)

    Nginx啟動(dòng)報(bào)錯(cuò) 由于需求需要在nginx中添加ssl服務(wù),ssl服務(wù)證書(shū)在 GoDaddy 上購(gòu)買的,購(gòu)買后在網(wǎng)頁(yè)中獲得private key和csr兩個(gè)文件,然后在控制臺(tái)中ssl欄進(jìn)入下載證書(shū),和 pem 文件內(nèi)容一致大大概就是證書(shū),提交服務(wù)器,配置好nginx配置文件,進(jìn)行啟動(dòng),返回以上報(bào)錯(cuò)。 將private k

    2024年02月13日
    瀏覽(20)
  • nginx啟動(dòng)報(bào)錯(cuò):nginx: [emerg] https protocol requires SSL support in /usr/local/nginx/conf/ngi

    nginx: [emerg] https protocol requires SSL support in /usr/local/nginx/conf/nginx 這個(gè)錯(cuò)誤是由于配置了https代理但是沒(méi)有安裝ssl模塊導(dǎo)致的,只需要按照以下步驟安裝ssl模塊 查看nginx配置,順便找到configure文件位置并切換到有這個(gè)文件的目錄下 修改configure,增加ssl模塊 編譯并安裝 重啟nginx即

    2024年02月11日
    瀏覽(47)
  • nginx配置https后報(bào)錯(cuò)nginx: [emerg] https protocol requires SSL support in XXX.conf詳細(xì)解決方法

    最近,在測(cè)試環(huán)境的nginx里增加了一個(gè) https 配置: 然后,執(zhí)行命令: 結(jié)果,nginx就報(bào)錯(cuò)了: 百度發(fā)現(xiàn),是之前安裝nginx時(shí)沒(méi)有安裝ssl模塊,需要重新安裝一個(gè)nginx。步驟如下: 1.下載好nginx安裝包,例如 nginx-1.17.2.tar.gz 2.查看下目前nginx使用的配置是什么: 發(fā)現(xiàn),確實(shí)沒(méi)有ss

    2023年04月08日
    瀏覽(20)
  • Nginx增加SSL證書(shū)時(shí)報(bào)錯(cuò):/configure: error: SSL modules require the OpenSSL library.

    Nginx增加SSL證書(shū)時(shí)報(bào)錯(cuò):/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. 步驟1:先看下是否安裝OpenSSL依賴 注意:nginx不是全局的話需要到nginx的sbin里面執(zhí)行

    2024年02月05日
    瀏覽(22)
  • 解決Nginx啟動(dòng)報(bào)錯(cuò)“nginx: [emerg] unknown directive “ngx_fastdfs_module“ in /xxx/nginx/conf/nginx.conf:43“

    解決Nginx啟動(dòng)報(bào)錯(cuò)“nginx: [emerg] unknown directive “ngx_fastdfs_module“ in /xxx/nginx/conf/nginx.conf:43“

    centos7操作系統(tǒng),nginx被人安裝過(guò)多次,重啟服務(wù)器,發(fā)現(xiàn)nignx未設(shè)置開(kāi)機(jī)自啟,啟動(dòng)報(bào)錯(cuò)nginx: [emerg] unknown directive “ngx_fastdfs_module” in /usr/local/nginx/conf/nginx.conf:43 1、嘗試啟動(dòng),查看報(bào)錯(cuò)日志 上述命令如果報(bào)nginx.service找不到: Failed to start nginx.service: Unit not found. ,則進(jìn)入ngi

    2024年02月07日
    瀏覽(64)
  • nginx報(bào)錯(cuò):./configure: error: SSL modules require the OpenSSL library. You can either

    nginx報(bào)錯(cuò):./configure: error: SSL modules require the OpenSSL library. You can either 在nginx中配置監(jiān)聽(tīng)443端口后重新加載配置文件出現(xiàn)此報(bào)錯(cuò), 原因:未安裝 ngx_http_ssl_module 模塊 解決方法:

    2024年02月05日
    瀏覽(26)
  • nginx安裝時(shí)配置出錯(cuò)openssl library in … not found和error: SSL modules require the OpenSSL library. 的徹底解決

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

    目? ? ? ? ? ? 錄 一、問(wèn)題描述(錯(cuò)誤現(xiàn)象描述) 二、問(wèn)題查處過(guò)程 1、查看openssl的版本 2、定位openssl所在目錄 3、配置參數(shù)加上 openssl的目錄 4、重裝openssl 三、問(wèn)題解決 1、openssl庫(kù)路徑匹配 2、--with-openssl路徑配置 ????????我們的程序原來(lái)正常運(yùn)行,由于客戶服務(wù)器做了

    2024年03月21日
    瀏覽(22)
  • nginx 配置 ssl 后無(wú)法訪問(wèn) nginx: [emerg] cannot load certificate “*”: BIO_new_file() failed

    nginx 配置 ssl 后無(wú)法訪問(wèn) nginx -s reload 無(wú)異常,其他域名也可以正常訪問(wèn) 使用 systemctl status nginx 查看狀態(tài),發(fā)現(xiàn)異常 可能是 SELinux 打開(kāi)造成無(wú)權(quán)限讀取證書(shū) 如果狀態(tài)為disabled是關(guān)閉,沒(méi)必要往下看了 重啟nginx,應(yīng)該就可以了 nginx -s reload 無(wú)效,可能是以下原因,建議直接使用

    2024年02月08日
    瀏覽(24)
  • nginx報(bào)錯(cuò) - OpenEvent(“Global\ngx_stop_1676“)failed (2: The system cannot find the file specified

    在cmd中運(yùn)行start nginx之后再運(yùn)行 nginx -s stop 或者nginx -s reload 的都會(huì)報(bào)以下的錯(cuò)誤。 nginx: [error] OpenEvent(“Globalngx_stop_1676”) failed (2: The systemcannot find the file specified) 其實(shí)這個(gè)報(bào)錯(cuò)意思就是你的nginx并未啟動(dòng)成功,那么為什么會(huì)出現(xiàn)nginx無(wú)法正常啟動(dòng)呢,可能是端口導(dǎo)致的問(wèn)題

    2024年02月16日
    瀏覽(16)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包