nginx “nginx could not build the server_names_hash”解决方法
2010-06-24 18:06
537 查看
给一个服务器下增加了一些站点别名,差不多有20多个。
重启nginx时候,提示:
could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
解决方法:
在配置文件的http{}段增加一行配置
server_names_hash_bucket_size 64;
如果64还不够,那么就按32的倍数往上加。
下面是在中文wiki上摘抄的一段说明:
保存服务器名字的hash表是由指令 server_names_hash_max_size 和 server_names_hash_bucket_size所控制的。参数hash bucket size总是等于hash表的大小,并且是一路处理器缓存大小的倍数。在减少了在内存中的存取次数后,使在处理器中加速查找hash表键值成为可能。如果 hash bucket size等于一路处理器缓存的大小,那么在查找键的时候,最坏的情况下在内存中查找的次数为2。第一次是确定存储单元的地址,第二次是在存储单元中查找键值。因此,如果Nginx给出需要增大 hash max size 或 hash bucket size的提示,那么首要的是增大前一个参数的大小.
重启nginx时候,提示:
could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
解决方法:
在配置文件的http{}段增加一行配置
server_names_hash_bucket_size 64;
如果64还不够,那么就按32的倍数往上加。
下面是在中文wiki上摘抄的一段说明:
保存服务器名字的hash表是由指令 server_names_hash_max_size 和 server_names_hash_bucket_size所控制的。参数hash bucket size总是等于hash表的大小,并且是一路处理器缓存大小的倍数。在减少了在内存中的存取次数后,使在处理器中加速查找hash表键值成为可能。如果 hash bucket size等于一路处理器缓存的大小,那么在查找键的时候,最坏的情况下在内存中查找的次数为2。第一次是确定存储单元的地址,第二次是在存储单元中查找键值。因此,如果Nginx给出需要增大 hash max size 或 hash bucket size的提示,那么首要的是增大前一个参数的大小.
相关文章推荐
- nginx could not build the server_names_hash 解决方法
- Nginx could not build the server_names_hash 错误的解决办法
- Nginx: could not build the server_names_hash 解决办法
- Nginx could not build the server_names_hash 错误的解决办法
- Nginx出现could not build the server_names_hash 解决办法
- Nginx: could not build the server_names_hash 解决办法
- Nginx:nginx could not build the server_names_hash解决办法
- nginx配置出错 could not build the server_names_hash, you should increase either server_names_hash_max_si
- nginx could not build the server_names_hash错误
- nginx报错”could not build the server_names_hash”
- nginx问题之nginx: could not build server_names_hash, you should increase server_names_hash_bucket_size解决方案
- TortoiseSVN访问VisualSVN Server:Could not open the requested SVN filesystem。解决方法!!
- The message received from the server could not be parsed 错误解决方法
- apache2: Could not reliably determine the server’s fully qualified domain name 解决方法
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName错误的解决方法
- Ubuntu Apache2重启提示could not reliably determine the server’e fully问题解决方法
- apache2: Could not reliably determine the server's fully qualified domain name 解决方法
- nginx报could not build theproxy_headers_hash错误,无法启动
- svn could not connect to the server 不能连接到服务器的解决方法
- Nginx做负载均衡报:nginx: [emerg] could not build the types_hash