本文主要是介绍解决nginx:nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_buck,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
步骤,给nginx.conf 配置了 server_name www.testtravel.com;
报错 nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
解决办法在http中添加一行:
server_names_hash_bucket_size 64;
如果64还不够,那么就按32的倍数往上加。
示例:
![](/upload/202110/14/202110140714133162.png)
这篇关于解决nginx:nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_buck的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!