你好 我自己没有向memcached插入数据,我是一个干净的系统 才测试的 我以前也是这个配置 是可以执行的 后来机房机器被重装了 然后我又去下了最新版本的 配置文件没有变 程序也没有变 变的就是srcache_store和memcache和keeplive 这些版本 我都是下的最新版本 谢谢
------------------ 原始邮件 ------------------
发送时间: 2012年7月18日(星期三) 凌晨3:26
收件人: "lyerwtyr";
抄送: "openresty";
主题: Re: 回复: 你好 貌似srcache-nginx-module 这个模块不工作 我netstat -an|grep 11211查看memcached有连接数,但是没有设置memcache的值 就是memcaced里面没有值
Hello!
2012/7/16 lyerwtyr <
lyerwtyr@gmail.com>:
> 2012/07/17 13:35:31 [error] 16875#0: *91976 srcache_fetch: cache sent
> invalid status line while sending to client, client: x.x.x.x, server:
> www.x.com, request: "GET / HTTP/1.1", subrequest: "/index.php", upstream:
> "fastcgi://unix:/tmp/php-cgi.sock:", host: "x.com"
>
从出错消息上看,你的 memcached 中存入的值是不符合 ngx_srcache 的格式要求的(ngx_srcache 要求完整的
HTTP 原始响应数据)。你是否有自己向 memcached 插入值?比如通过 php 或者 telnet 手工插入?应该总是依赖于
ngx_srcache 的 srcache_store 来向 memcached 写入值,这样才能确保格式是正确的。
如果问题持续,我建议你启用 nginx 的调试日志(使用 ./configure --with-debug 重新编译你的 nginx,同时在
nginx.conf 文件中使用 error_log logs/error.log debug 配置指令),这样可以得到更详细的信息(即
[debug] 级别的)。
Best regards,
-agentzh