Nginx 的 server_names_hash_bucket_size 问题
来源:互联网 发布:开淘宝网店有赚钱的吗 编辑:程序博客网 时间:2024/06/05 23:58
在 Nginx 0.6.35 的版本中,配置多个 server 虚拟主机,必须要在配置文档中 http { 里头加上 server_names_hash_bucket_size 64; 这么一句
http {#server_names_hash_bucket_size 64;#include mime.types;default_type application/octet-stream;………….省略}不然不但 nginx 启动不了,而且 nginx -t 测试配置文档的时候会提示
could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
2009/02/20 13:54:27 [emerg] 11372#0: the configuration file /opt/nginx/conf/nginx.conf test failed
下面是在中文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 的 server_names_hash_bucket_size 问题
- nginx 虚拟主机多域名问题 【server_names_hash_bucket_size】
- Nginx 的推广问题
- Nginx 的推广问题
- Nginx try_files 的问题?
- nginx的一些问题
- Nginx server_name 的问题
- Nginx配置的问题
- Nginx配置的问题
- Nginx配置的问题
- Nginx配置的问题
- Nginx配置的问题
- Nginx配置的问题
- Nginx配置的问题
- nginx的配置问题
- nginx rewrite 遇到的问题
- Nginx中worker_connections的问题
- nginx匹配问号的问题
- Linux上的ftp配置,及错误500 OOPS: could not bind listening IPv4 socket解决
- c++操作word接口
- http://acm.nyist.net/JudgeOnline/problem.php?pid=117&&树状数组求逆序数+离散化
- Poem: I Like For You To Be Still
- Socket编程
- Nginx 的 server_names_hash_bucket_size 问题
- 用 jQuery写的可编辑的表格
- Visual C++操纵MS Word
- 九选三不及格,心情沉痛ing
- Linux设备驱动开发学习步骤
- * java版HashMap,大数据量时效率很低,建议1000条数据以下使用
- git使用总结
- 网管工具之cacti
- linux双向链表分析之list_del中的技巧