Nginx start being given

When supervisorctl start with nginx error
log file records about:

could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32

The solution is to add the following configuration at http segment nginx configuration file:

server_names_hash_bucket_size 64;

Cause: The
storage server name hash table is a command server_names_hash_max_size and server_names_hash_bucket_size controlled. Parameter hash bucket size is always equal to the size of the hash table, and a multiple way cache size of the processor. Reducing the number of accesses in the memory after the accelerated keys hash table lookup in the processor becomes possible. If the hash bucket size equal to the size of the processor cache all the way, then find the key, the number of times the worst case lookup in memory 2. The first is to determine the address storage unit, and the second is to find the key in a storage unit. Thus, given if required to increase Nginx prompt hash max size or hash bucket size, then the size of the previous primary is increased by one parameter.

Reproduced in: https: //www.jianshu.com/p/f79003c8e790

Guess you like

Origin blog.csdn.net/weixin_34391854/article/details/91308973