Powered by md-Blog  文 - 篇  访客 -

Nginx提示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


  分类:Linux服务器  / 
更新:2020-01-02 11:14:43  /  创建:2020-01-02 11:14:43
不要删除

问题:nginx 测试命令

sudo nginx -t

之后提示:

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

解决方法:

sudo vim /etc/nginx/nginx.conf

html 中添加/修改:

types_hash_bucket_size 1024;

保存重启 nginx

sudo systemctl restart nginx

验收:

sudo nginx -t

完美解决。


不要删除

小站不易,感谢支持!