``` nginx配置出错 could not build the server\_names\_hash, you should increase either server\_names\_hash\_max\_si ``` **错误信息** could not build the server\_names\_hash, you should increase either server\_names\_hash\_max\_size: 512 or server\_names\_hash\_bucket\_size: 64 **解决办法** 在/usr/local/nginx/conf/nginx.conf中http{}加入这样一句话  server\_names\_hash\_max\_size 512; 使用 sudo  /usr/local/nginx/sbin/nginx -t对nginx配置文件进行检查,如果还提示  could not build the server\_names\_hash, you should increase either server\_names\_hash\_max\_size: 512 or server\_names\_hash\_bucket\_size: 64 则再把 server\_names\_hash\_max\_size升值 server\_names\_hash\_max\_size 1024; 或者把下面这行改为256 ``` server_names_hash_bucket_size 256; ```