当前位置:网站首页>"Could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32"
"Could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32"
2022-07-26 09:07:00 【Angry devil】
Just restarted nginx, result , The service doesn't work , Go to the error log file and have a look , result , I found this mistake : could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32 I searched the related posts , quite a lot , The solution is simple , Is in the http layer , Add the following : server_names_hash_bucket_size 64; #64 This value , It can be adjusted accordingly The reason for this error is : because Nginx Medium server Configuration in progress server_name The definition value of is too long ! What then? Server_name Too long will cause this problem , That's the key : Server name hash The table is ordered by server_names_hash_max_size and server_names_hash_bucket_size Controlled by . according to Nginx Analysis of official documents ,server_names_hash_bucket_size The default value of may be 32 It could be 64, Or some other value , The size of this default value depends on CPU Cache line length of . Parameters hash bucket size Always equal to hash The size of the table , And it's a multiple of the cache size of the processor along the way . After reducing the number of accesses in memory , Speed up the search in the processor hash Table key values become possible . If hash bucket size Equal to the size of the processor cache , So when it comes to finding keys , In the worst case, the number of lookups in memory is 2. The first time is to determine the address of the storage unit , The second time is to find the key value in the storage unit . therefore , If Nginx Give the need to increase hash max size or hash bucket size A hint of , So the first thing is to increase the size of the previous parameter .
边栏推荐
- Mutual transformation of array structure and tree structure
- codeforces dp合集
- 数据库操作技能7
- 第6天总结&数据库作业
- 对象型的集合按某个属性的值进行去重
- “could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32” 问题处理
- What is the difference between NFT and digital collections?
- 数据库操作 技能6
- Store a group of positive and negative numbers respectively, and count the number of 0 -- assembly language implementation
- 高数 | 武爷『经典系列』每日一题思路及易错点总结
猜你喜欢

JDBC database connection pool (Druid Technology)

数据库操作 题目一

【LeetCode数据库1050】合作过至少三次的演员和导演(简单题)

Nuxt - Project packaging deployment and online to server process (SSR server rendering)

NPM add source and switch source

Elastic APM安装和使用

Introduction to excellent verilog/fpga open source project (30) - brute force MD5

Study notes of dataX

Day06 homework -- skill question 1

(1) CTS tradefed test framework environment construction
随机推荐
220. Presence of repeating element III
Espressif plays with the compilation environment
JDBC database connection pool (Druid Technology)
Pytoch realizes logistic regression
数据库操作 技能6
Nuxt - 项目打包部署及上线到服务器流程(SSR 服务端渲染)
Day06 homework - skill question 6
Which of count (*), count (primary key ID), count (field) and count (1) in MySQL is more efficient? "Suggested collection"
Pat grade a a1076 forwards on Weibo
深度学习常用激活函数总结
idea快捷键 alt实现整列操作
Overview of motion recognition evaluation
CSDN TOP1“一个处女座的程序猿“如何通过写作成为百万粉丝博主?
Database operation topic 2
jvm命令归纳
js闭包:函数和其词法环境的绑定
“No input file specified “问题的处理
(1) CTS tradefed test framework environment construction
【ARKit、RealityKit】把图片转为3D模型
本地缓存