当前位置:论坛首页 > Linux面板 > 讨论

宝塔nginx提示 [warn] could not build optimal variabl es hash解决方法

发表在 Linux面板2021-4-29 04:17 [复制链接] 0 3197

一、nginx重启报错问题
报错问题如下:
iShot2021-04-29 04.07.17.png
  1. 报错代码:nginx [warn] could not build optimal variabl es hash, you should increase either variabl es hash max size: 1024 or variables hash bucket -size: 64; ignoring variables hash_bu cket size
复制代码
搜索全面没有看到相关解决方法,特在此发布一下解决方法
二、解决方法:
在nginx配置文件中添加如下参数:
iShot2021-04-29 04.15.17.png
  1. variables_hash_max_size 2048;
  2. variables_hash_bucket_size 512;
复制代码
即可解决问题,重启等不再报错。

使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表