1. 程式人生 > >Failed to start A high performance web server and a reverse proxy server 錯誤提示

Failed to start A high performance web server and a reverse proxy server 錯誤提示

I am running nginx on Raspbian Jessie operating system.

I just created new virtual host and reloaded nginx service:
/etc/init.d/nginx restart
Now I got:
[....] Reloading nginx configuration (via systemctl): nginx.serviceJob for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
 failed!
Turns out I can test if the configuration file is OK with:
nginx -t -c /etc/nginx/nginx.conf
This time it says:
nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
nginx: configuration file /etc/nginx/nginx.conf test failed
Lets check what this setting is in config:
grep server_names_hash_bucket_size /etc/nginx/nginx.conf
And it says that it is not configured:
        # server_names_hash_bucket_size 64;
OK lets increase this as it says:
sed -i "s/^.*server_names_hash_bucket_size..*;$/server_names_hash_bucket_size 64;/" /etc/nginx/nginx.conf
Check again:
grep server_names_hash_bucket_size /etc/nginx/nginx.conf
Its good now:
server_names_hash_bucket_size 64;
Lets test config file:
nginx -t -c /etc/nginx/nginx.conf
This now says:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Got to go:
/etc/init.d/nginx restart

相關推薦

Failed to start A high performance web server and a reverse

                點選開啟連結 I am running ng

Failed to start A high performance web server and a reverse proxy server 錯誤提示

I am running nginx on Raspbian Jessie operating system. I just created new virtual host and reloaded nginx service:/etc/init.d/nginx restart Now I got:[...

web.xml中加了servlet配置之後出現Server Tomcat v7.0 Server at localhost failed to start.

這裡轉載一位博主的文,寫的很好。 先貼連結:https://www.cnblogs.com/vivizhang/p/vivizhang.html 總結下,用ecplise生成的servlet會自動生成一個註解,比如:@WebServlet("/ServletDemo") 如果,我們還去w

web開發 Tomcat啟動報錯 5種解決方法 Server Tomcat v8.0 Server at localhost failed to start . 五種綜合解決方法

Eclipse 中Tomcat 啟動報錯 Eclipse的提示視窗  Server Tomcat v8.0 Server at localhost failed to start . 日誌輸出中報   Failed to destroy end point associa

Eclipse 執行web project,出現Server Tomcat v9.0 Server at localhost failed to start.錯誤

一直出現Server Tomcat v9.0 Server at localhost failed to start. 看到一篇文章http://stackoverflow.com/questions/39310432/fixing-apache-v9-0-server-t

Server Tomcat v7.0 Server at localhost failed to start報錯以及解決方式

ron build oca led 無法 cat servle 問題 pan 現象: 昨天在一個web項目中新建了一個servlet以後,tomcat服務器就一直無法啟動,報Server Tomcat v7.0 Server at localhost failed to s

Server Tomcat v7.0 Server at localhost failed to start.

ips 後來 資料 stack 一個tomcat 解決辦法。 一個 網頁 clip 今天在做j2ee網頁的時候,之前tomcat用的好好地,不知道我哪裏刪了還是改了什麽東西,然後啟動tomcat的時候就報錯“Server Tomcat v7.0 Server at loca

問題描述:Server Tomcat v7.0 Server at localhost failed to start.

star com org ada 技術分享 gin tro ins cnblogs   問題描述:Server Tomcat v7.0 Server at localhost failed to start.    解決辦法   把你工作空間文件夾下的如

Server Tomcat v7.0 Server at localhost failed to start.解決方法

art 解決方法 exc logs html htm 但是 出現 google ---恢復內容開始--- 今天在做jsp項目的時候,Tomcat突然無法打開了,出現的報錯是這樣的: 也不知道是怎麽搞得,百度了老半天看到有的網友是通過兩這個方法解決的,連接在這http://

CentOS7.2安裝mariadb-server,解決Failed to start mysqld.service: Unit not found

serve bsp 開機啟動 輸入 enable -s emctl b-s art 當輸入命令 ~]# systemctl start mysql.service 要啟動MySQL數據庫是卻是這樣的提示 Failed to start mysqld.service: Uni

Tomcat異常:server Tomcat v9.09 Server at localhost failed to start

localhost ron 尋找 代碼 pattern host child bubuko image 詳細報錯: 首先不要慌張,這不是Tomcat引發的問題。而是你自己代碼錯誤導致的問題(小編遇到的是配置servlet-mapping時,url-pattern中配置不合

ionic真機調試Android報錯 - could not read ok from ADB Server * failed to start daemon * error: cannot connect to daemon

找到 管理器 and nic sid ask err span adb 在使用真機調試Android程序時,報錯如下: could not read ok from ADB Server * failed to start daemon error: cannot con

Tomcat無法啟動:Server Tomcat v8.5 Server at localhost failed to start

cal ctrl+s sso 問題: log 配置 狀態 iss text Tomcat無法啟動 項目狀態 Maven項目:基礎環境(依賴,基本配置文件)搭建完成,前端頁面都導入,部署測試項目環境,出現該問題 問題情景: 1.彈窗提示Tomcat啟動失敗 2.Consol

maven項目使用tomcat啟動報錯:Server Tomcat v8.5 Server at localhost failed to start

com 再次 tar 同事 使用 sta 本地倉庫 art ati 背景說明:1)該項目為maven項目,使用的maven的本地倉庫裏有不少之前使用過下載的jar包;      2)從svn下載該項目後,無報錯情況;      3)部署到tomcat啟動報錯 如下 :

apache2啟動失敗(Failed to start The Apache HTTP Server.)解決方案

star 卸載 sta 啟動 art code led sudo pac 不知道如何啟動apache2就啟動不來了。 如下圖所示: 即使卸載了重新裝也是如此 經過測試卸載並清除軟件包的配置即可解決   sudo apt-get purge apache2   s

記一次sshd啟動報錯,Failed to start OpenSSH server daemon.

sshd -t [[email protected] proj]# sshd -t @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY F

Server Tomcat v9.0 Server at localhost failed to start.誤刪檔案導致啟動失敗

網上有一系列的解決方案,試了都沒用,一看報錯資訊是清理垃圾時誤刪了某些檔案導致啟動失敗,還原檔案步驟如下 1,myeclipse>preferences>Servers>Runtime Environment 2,把以前的tomcat 9.0移除&n

Server Tomcat v7.0 Server at localhost failed to start解決歷程

 執行Tomcat出現如圖所示的問題, 方法1:把你工作空間資料夾下的如下路徑開啟:<workspace>\.metadata\.plugins\org.eclipse.core.resources 然後刪除 .snap 檔案,我在eclipse開啟的

tomcat啟動失敗問題排除及解決辦法 Server Tomcat v9.0 Server at localhost failed to start.

解決方案一:點選控制檯下的server,右擊一下,點選Add And Remove,把專案重新部署一下,在執行一下,看看能不能解決問題; 解決方案二:刪除掉eclipse中的服務,再重新部署一下 過程如下 delete掉server,-->window-->

[CentOS]Failed to start OpenSSH server daemon

問題描述: 以前一直能夠通過Xshell來連線伺服器,但是突然連線不上了. 解決思路: 首先通過命令檢視SSH服務的狀態: systemctl status sshd 可以看到,有錯誤,但是沒有顯示詳細資訊: 使用命令,定位錯誤詳細資訊 sshd -t 可以看到