原文:[emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size:32

報錯原因該報錯產生的原因主要是因為Nginx中的server配置中server name的定義值過長產生的。解決方法在Nginx的http字段內添加如下代碼,放大默認bucket sizehttp server names hash bucket size ..... 注意:如果已經存在該字段信息,需要加大后面的數值。且數值必須是 的倍數這時候可能有的同學要問了,他的默認值是多少。根據Nginx ...

2020-02-06 20:22 0 682 推薦指數:

查看詳情

nginx啟動報錯server_names_hash_bucket_size: 32

之前都好好的,這次換了個地方部署,同樣的配置nginx啟動卻報錯了 2020/12/07 23:41:58 [emerg] 1012#1012: could not build server_names_hash, you should increase ...

Mon Dec 07 19:00:00 CST 2020 0 851
nginx could not build the server_names_hash 解決方法

nginx “nginx could not build the server_names_hash”解決方法 給一個服務器下增加了一些站點別名,差不多有20多個。 重啟nginx時候,提示: could not build the server_names_hash, you should ...

Thu Jan 18 17:19:00 CST 2018 0 5844
nginx報錯”could not build the server_names_hash

今天在給nginx添加幾十個域名后,重啟nginx的時候,報錯”[emerg]: could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 ...

Tue Jun 12 00:49:00 CST 2012 0 6921
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM