亚洲中字慕日产2020,大陆极品少妇内射AAAAAA,无码av大香线蕉伊人久久,久久精品国产亚洲av麻豆网站

資訊專欄INFORMATION COLUMN

Nginx的各種報(bào)錯(cuò)總結(jié)

Tecode / 2271人閱讀

摘要:復(fù)制代碼報(bào)錯(cuò)信息如下錯(cuò)誤錯(cuò)誤解答執(zhí)行命令安裝依賴包。為了讓讀者理解問題,重現(xiàn)上述錯(cuò)誤過程,命令如下復(fù)制代碼

1、Nginx安裝過程報(bào)錯(cuò)
錯(cuò)誤一:軟件依賴包未正確安裝問題---PCRE依賴包沒有安裝

  ./configure: error: the HTTP rewrite module requires the PCRE library.
  You can either disable the module by using --without-http_rewrite_module
  option or install the PCRE library into the system or build the PCRE library
  statically from the source with nginx by using --with-pcre= option.

解決方法:yum install pcre pcre-devel -y
錯(cuò)誤二:軟件依賴包未正確安裝問題---OPENSSL依賴包沒有安裝
./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.

解決方法:yum install openssl openssl-devel -y
錯(cuò)誤三:編譯安裝pcre編譯軟件時(shí),gcc不全導(dǎo)致報(bào)錯(cuò)(使用yum安裝不存在此問題)。
復(fù)制代碼
報(bào)錯(cuò)信息如下:
[root@gjlin2 pcre-8.30]# make && make install
make all-am
make[l]: Entering directory 7h〇me/gjlin/tools/pcre-8.30*
CXX pcrecpp.lo
libtool: compile : unrecognized option -DHAVE_CONFIG_H
libtool:compile : Try libtool --help for more information.
make[l]:*[pcrecpp.lo]錯(cuò)誤 1
make[l]:Leaving directory /home/gjlin/tools/pcre-8.30
make : * [all]錯(cuò)誤 2

解答:執(zhí)行"yum -y install gcc-c++"命令安裝gcc-c++依賴包。
復(fù)制代碼
回到頂部
2、Nginx啟動(dòng)過程中報(bào)錯(cuò)
錯(cuò)誤一:nginx軟件重復(fù)啟動(dòng)產(chǎn)生的錯(cuò)誤信息
復(fù)制代碼
[root@web01 nginx-1.10.2]# /application/nginx/sbin/nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

解決方法:nginx軟件已經(jīng)啟動(dòng)無需反復(fù)啟動(dòng),如果需要重新啟動(dòng)需要停止nginx進(jìn)程或者用reload方式進(jìn)行重啟

復(fù)制代碼
錯(cuò)誤二:403報(bào)錯(cuò)
服務(wù)阻止客戶端訪問
服務(wù)端站點(diǎn)目錄中,沒有指定首頁文件信息
錯(cuò)誤三:?jiǎn)?dòng) Nginx 時(shí)如下報(bào)錯(cuò)"nginx:[emerg]getpwnam(“nginx”)failed"
解答:這是因?yàn)闆]有對(duì)應(yīng)的Nginx服務(wù)用戶,執(zhí)行useradd nginx -s /sbin/nologin -M創(chuàng)建Nginx用戶即可。為了讓讀者理解問題,重現(xiàn)上述錯(cuò)誤過程,命令如下:

復(fù)制代碼
[root@web tools]# pkill nginx

[root@web tools]# userdel nginx

[root@web tools]# /application/nginx/sbin/nginx

nginx: [emerg] getpwnam(Mnginx") failed

[root@web tools]# useradd nginx -s /sbin/nologin -M

[root@web tools]# /application/nginx/sbin/nginx

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://www.ezyhdfw.cn/yun/126391.html

相關(guān)文章

  • 跨域問題匯總

    摘要:因?yàn)闉g覽器的同源策略,前端開發(fā)會(huì)遇到各種跨域問題。前言在總結(jié)各種跨域問題之前,我們先來了解一下瀏覽器的同源策略。所以只能解決一級(jí)域名相同二級(jí)域名不同的跨域問題。 跨域問題的場(chǎng)景和解決方案多種多樣,只要是做前端開發(fā),總會(huì)遇到。而且面試時(shí)也是必問的問題。所以自己學(xué)習(xí)總結(jié)記錄一下。 因?yàn)闉g覽器的同源策略,前端開發(fā)會(huì)遇到各種跨域問題。本篇文章總結(jié)了遇到跨域問題的不同的場(chǎng)景以及對(duì)應(yīng)的解決方案。 ...

    MkkHou 評(píng)論0 收藏0
  • Wordpress博客遷移至Jekyll過程總結(jié)

    摘要:想來想去還是想試試把我的博客轉(zhuǎn)成一方面為了管理另一方面實(shí)在是感覺請(qǐng)求過多速度太慢可改造性太差經(jīng)過遷移后默認(rèn)主題速度杠杠的顯示時(shí)間不到哦安裝本文在環(huán)境下操作環(huán)境需要比較懶貌似自帶還是啥時(shí)候裝了不會(huì)的自己搜一下安裝和目前最新穩(wěn)定版本是自帶源的版 想來想去還是想試試把我的博客轉(zhuǎn)成Jekyll, 一方面為了git管理, 另一方面實(shí)在是感覺請(qǐng)求過多速度太慢, 可改造性太差. 經(jīng)過遷移后, 默認(rèn)主...

    高勝山 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<