侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

nginx报A error occurred错误的解决过程

2023-11-19 星期日 / 0 评论 / 0 点赞 / 47 阅读 / 785 字

今天公司服务器nginx出现A error occurred错误, 截图: 在nginx.xml中有如下配置: # 用户的ip地址 $binary_remote_addr 作为key, 每个ip地址

今天公司服务器nginx出现A error occurred错误, 截图:

在nginx.xml中有如下配置:

# 用户的ip地址 $binary_remote_addr 作为key, 每个ip地址最多有50个并发连接limit_conn_zone $binary_remote_addr zone=TotalConnLimitZone:10m;limit_conn TotalConnLimitZone 50;limit_conn_log_level notice;


解决方法: 加上rate=10r/s, 根据项目的不同添加

# 用户的ip地址 $binary_remote_addr 作为key, 每个ip地址每秒处理10个请求limit_conn_zone $binary_remote_addr zone=TotalConnLimitZone:10m rate=10r/s;limit_conn_log_level notice;

 

 

广告 广告

评论区