http { server_names_hash_bucket_size 64;
proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k; } } 错误解决 我在配置后 报了如下错误 could not build the server_names_hash
如下: include D:/data/nginxdomainconfig/vhost/nginx/*.conf; 2:nginx “nginx could not build the server_names_hash
如果当前值为32,那么当出现”too.long.server.name.example.org“这样的域名匹配时,在启动的过程中会输出: could not build the server_names_hash...{ #增加名称哈希表大小 server_names_hash_bucket_size 64; } 如果 server 的名称太多,会输出: could not build the server_names_hash
1 CLOSE-WAIT 线上修改配置如下: net.ipv4.tcp_max_tw_buckets = 18000 2,nginx优化 主要是哈希表,其他配置已经优化,哈希表有如下几种 server_names_hash
sudo service nginx restart 如果nginx重启失败并显示以下信息 Restarting nginx: nginx: [emerg] could not build the server_names_hash
could not build the server_names_hash, # 2. you should increase server_names_hash_bucket_size...# 3. … #如果你指定了大量的服务器名字,那么将会遇到另一个错误信息: # 1. could not build the server_names_hash
如果这个值是32,那么定义“too.long.server.name.nginx.org”作为虚拟机主机名就会失败,显示如下错误信息: could not build the server_names_hash
领取专属 10元无门槛券
手把手带您无忧上云