nginx: [emerg] could not build server_names_hash
报错信息
nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
nginx: configuration file /etc/nginx/nginx.conf test failed
解决办法
在Nginx的http字段内添加如下代码,放大默认bucket_size
http {
server_names_hash_bucket_size 64;
…
}
加入server_names_hash_bucket_size 64;
这行问题,解决了。
暂时没有深入研究原因。
参考:
https://www.cnblogs.com/zouhong/p/12270193.html
nginx: [emerg] could not build server_names_hash相关推荐
- Nginx做负载均衡报:nginx: [emerg] could not build the types_hash
环境:KVM/Centos6.3 用Nginx做负载均衡的时候在配置完成后,启动Nginx的时候报: nginx: [emerg] could not build the types_hash, yo ...
- [问题已处理]-[nginx]-nginx 报错 could not build server_names_hash
nginx 报错 could not build server_names_hash 这边添加了一个比较长的域名 测试nginx配置就报如下错误 在http{}下添加 server_names_ha ...
- could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
Nginx简介 HTTP和反向代理web服务器 Nginx (engine x) 是一个高性能的HTTP和反向代理web服务器,同时也提供了IMAP/POP3/SMTP服务.Nginx是由伊戈尔·赛索 ...
- nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
今天测试Docker下配置一个nginx模板的镜像,装好nginx后,使用nginx -t进行检查,报错如下: 1 2 3 4 [root@a381c4c04132 yum.repos.d]# ngi ...
- Nginx重启时丢失nginx.pid文件解决方法nginx: [emerg] open() “/var/run/nginx/nginx.pid“ failed (2: No such fi
nginx: [emerg] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory) 不要在 ...
- centos启动Nginx提示nginx: [emerg] still could not bind()
centos7中启动Nginx: /usr/local/nginx/sbin/nginx,提示以下内容 [root@localhost nginx-1.8.0]# /usr/local/nginx/s ...
- nginx: [emerg] getpwnam(nginx) failed in /usr/local/nginx/conf/nginx.conf:2
启动nginx报错: nginx: [emerg] getpwnam("nginx") failed in /usr/local/nginx/conf/nginx.conf:2 是 ...
- Linux报错nginx: [emerg] unexpected “}”
问题 新建虚拟站点,引入伪静态配置文件的时候, nginx: [emerg] unexpected "}" in /usr/local/nginx/conf/nginx.conf: ...
- nginx: [emerg] duplicate “log_format“ name “main“ in /usr/local/phpstudy/vhost/sys/nginx/sys.conf:11
前言 CentOS Linux release 8.2.2004 (Core) phpstdy X1.26 nginx1.15 配置nginx日志出错 nginx: [emerg] duplicate ...
- nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
今天在测试Nginx功能的时候,出现问题如下: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) ngi ...
最新文章
- android intent email,Android Email Intent
- Unity加载配置文件的两种方式
- 语义分析的一些方法(下篇)
- xxx cannot be resolved to a type 问题的几种常见原因
- 【C语言】字节对齐问题(以32位系统为例)
- Sasha and Sticks
- 计算机网络原理(第二章)课后题答案
- 阿里云linux绑定域名
- PostgreSQL 9.6 IO Hang问题浅析与优化
- 叉积 微分 恒等式_4分钟带你认识向量的极化恒等式。
- 神经网络进行自然语言处理最佳实践
- 北京地铁和广州地铁之感想
- 项目范围频繁变更怎么办?
- 计算程序中flag是什么意思,python中flag什么意思
- 读书文摘卡 -《大秦帝国》
- 毕业生招聘信息的发布与管理系统(论文+设计)
- Qpid 安装问题之qpid.messaging
- 为什么今天要致敬屠呦呦?
- 利用 XML 实现 BASE64 编码和解码
- 《spss统计分析与行业应用案例详解》:实例十二 卡方检验