nginx启动错误: nginx could not build optimal types_hash
作者:
来源:本站原创
点击数: 次
发布时间:2023年11月01日
问题描述:
启动nginx异常,日志里打印:[warn] 18872#18872: could not build optimal types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size
解决办法:
http {
types_hash_max_size 4096;
server_names_hash_bucket_size 128;
...
}