报错信息

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相关推荐

  1. Nginx做负载均衡报:nginx: [emerg] could not build the types_hash

    环境:KVM/Centos6.3 用Nginx做负载均衡的时候在配置完成后,启动Nginx的时候报: nginx: [emerg] could not build the types_hash, yo ...

  2. [问题已处理]-[nginx]-nginx 报错 could not build server_names_hash

    nginx 报错 could not build server_names_hash 这边添加了一个比较长的域名  测试nginx配置就报如下错误 在http{}下添加 server_names_ha ...

  3. 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是由伊戈尔·赛索 ...

  4. 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 ...

  5. 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) 不要在 ...

  6. 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 ...

  7. 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 是 ...

  8. Linux报错nginx: [emerg] unexpected “}”

    问题 新建虚拟站点,引入伪静态配置文件的时候, nginx: [emerg] unexpected "}" in /usr/local/nginx/conf/nginx.conf: ...

  9. 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 ...

  10. 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 ...

最新文章

  1. android intent email,Android Email Intent
  2. Unity加载配置文件的两种方式
  3. 语义分析的一些方法(下篇)
  4. xxx cannot be resolved to a type 问题的几种常见原因
  5. 【C语言】字节对齐问题(以32位系统为例)
  6. Sasha and Sticks
  7. 计算机网络原理(第二章)课后题答案
  8. 阿里云linux绑定域名
  9. PostgreSQL 9.6 IO Hang问题浅析与优化
  10. 叉积 微分 恒等式_4分钟带你认识向量的极化恒等式。
  11. 神经网络进行自然语言处理最佳实践
  12. 北京地铁和广州地铁之感想
  13. 项目范围频繁变更怎么办?
  14. 计算程序中flag是什么意思,python中flag什么意思
  15. 读书文摘卡 -《大秦帝国》
  16. 毕业生招聘信息的发布与管理系统(论文+设计)
  17. Qpid 安装问题之qpid.messaging
  18. 为什么今天要致敬屠呦呦?
  19. 利用 XML 实现 BASE64 编码和解码
  20. 《spss统计分析与行业应用案例详解》:实例十二 卡方检验

热门文章

  1. Python数据分析与挖掘——回归模型的假设检验
  2. 天价电费成5G建设拦路虎,多省出台政策给运营商减负
  3. 《网络神采4》技术大揭密之:DedeCMS存储过程
  4. 数据分析~matlab plot 坐标、字体、子图
  5. 我与我的专业计算机作文500字,我和学校作文500字(精选5篇)
  6. 随想录:开发一流Android SDK
  7. Android/Linux USB HID驱动(即USB鼠标USB键盘等驱动)相关文件
  8. Portal for ArcGIS是什么东东
  9. 【DB笔试面试1-100】
  10. RFID防盗安全门,自助借还书机,让图书馆发展进入新的里程碑