返回首页DA系统C#IDE文件同步服务屏保 今天是: 2026-05-05    "立夏"  夏季的第一个节气,表示盛夏时节的正式开始

搜索
热搜: linux 技术
Hi~登录注册
查看: 1648|回复: 0

[转载] 【转载】关于 nginx: [emerg] unknown directive "limit_zone"问题

[复制链接]
发表于 2022-9-26 13:44:27 | 显示全部楼层 |阅读模式

少侠不来段修仙之旅吗~

您需要 登录 才可以下载或查看,没有帐号?注册成为修仙之旅的少年~

x
关于 nginx: [emerg] unknown directive "limit_zone"问题



根据Nginx的更新日志原文显示:
Changes with nginx 1.7.6 30 Sep 2014

*) **Change: the deprecated "limit_zone" directive is not supported
   anymore.**

*) Feature: the "**limit_conn_zone**" and "**limit_req_zone**" directives now
   can be used with combinations of multiple variables.

*) Bugfix: request body might be transmitted incorrectly when retrying a
   FastCGI request to the next upstream server.

*) Bugfix: in logging to syslog..



详情请查看: Nginx更新日志官网
目前limit_zone 这个配置在nginx.conf文件中是无法正常被读取的,应该使用最新的配置:
limit_conn_zone 字段来配置;
新版本例子: limit_conn_zone $binary_remote_addr zone=one:10m
旧版本例子: limit_zone one $binary_remote_addr 10m;



具体的语句的含义就不解释了,相信能找到这个问题的都应该知道什么意思了.
如果有文中有错误的地方,麻烦指出,希望能帮到各位;


游客
回复
*滑块验证:

DA论坛飞机票来了~
快速回复 返回顶部 返回列表