$ sudo service nginx configtest nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64 nginx: configuration file /etc/nginx/nginx.conf test failed
在使用NGINX时,如果配置server_name时使用了过长的域名,则在检查配置文件或启动服务/开启进程[*]时,会报出上面的提示。简单来说,这个提示表示:当前需要加载的配置文件中含有较长的域名,NGINX无法有效对其哈希,需要增加server_names_hash_bucket_size指令的数值。