Nginx: could not build the server_names_hash 解决办法
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx: could not build the server_names_hash 解决办法相关的知识,希望对你有一定的参考价值。
# /etc/init.d/nginx reload * Reloading nginx configuration nginx [fail] # nginx -t nginx: [emerg] could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64 nginx: configuration file /etc/nginx/nginx.conf test failed # tail /var/log/nginx/error.log 2015/01/28 10:21:51 [emerg] 22362#0: could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64
解决办法是在 nginx 配置文件的 http 段中增加如下配置:
# vi /etc/nginx/nginx.conf ... http { ... server_names_hash_max_size 512; server_names_hash_bucket_size 128; ... } ...
原文:http://www.vpsee.com/2015/02/nginx-could-not-build-the-server_names_hash/
以上是关于Nginx: could not build the server_names_hash 解决办法的主要内容,如果未能解决你的问题,请参考以下文章
记录Nginx错误could not build the server_names_hash you should increase server_names_hash_bucket_size:
could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
./gradlew build:Could not find tools.jar. 解决方法
Could not find tools.jar when build gradle project