LEN

Nginx zero size shared memory zone "one" 错误
今天配置redis2 时 重启nginx 服务 突然报错[root@bf conf.d]#nginx -t ngi...
扫描右侧二维码阅读全文
28
2017/04

Nginx zero size shared memory zone "one" 错误

今天配置redis2 时 重启nginx 服务 突然报错

[root@bf conf.d]#nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: [emerg] zero size shared memory zone "one"
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

因为昨天重新编译按装 nginx 1.10.3版本 覆盖 1.6.3版本 使用nginx.old 重启发现报错

nginx: [emerg] unknown limit_req_zone "one" in /usr/local/nginx/conf/conf.d/typecho.conf:28

location ~ \.php {
# 限制每秒请求数
#limit_req zone=one burst=1 nodelay;
fastcgi_pass  unix:/dev/shm/php-fpm.sock;

屏蔽配置 limit_req zone=one burst=1 nodelay;

至于为什么出错,可能是因为nginx并没有支持 http_limit_conn_zone模块 ...

Last modification:April 28th, 2017 at 11:05 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment