nginx 报错 could not build the types_hash, you should increase either types_hash_max_size: 1024 or....

发布于:2023-07-04 ⋅ 阅读:(91) ⋅ 点赞:(0)

could not build the types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 32

 

刚安装完nginx 的时候 启动nginx 报这个错

 

could not build the types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 32

 

解决方法:在nginx配置文件http模块添加:types_hash_max_size 2048

 

首先进到nginx的配置文件目录 /usr/local/nginx/conf

然后 编辑 保存 再重启

如图:


网站公告

今日签到

点亮在社区的每一天
去签到