2016-04-08 16 views
0

私は一日中壁に頭を向けています。Nginxキャッシュ、redis_pass

私が何か

location /help { 
    set $redis_key "cache:$scheme://$host$request_uri"; 
    default_type text/html; 
    redis_pass 127.0.0.1:6379; 
    error_page 404 = @upstream; 

}

キャッシュのための私のRedisのインスタンス内のキーと値がありますテストするには、次のnginxの設定を使用しています

:$スキームを....(私の場合キャッシュ:http://localhost/help

nginx redis要求のredis-cliを監視して、"get" "cache:http://localhost/help"をコピーして別のredis-cliウィンドウに貼り付け、期待される応答を得ることができるので、それらが存在することが分かります。

問題はnginxに付属しています。応答が得られません。再び私はそれがredis-cli -> monitorの中から接続しているのを見ることができ、私は鍵と価値があることを知っています。私はこの

2016/04/08 16:52:42 [notice] 9304#0: worker process 6328 exited with code 0 
2016/04/08 16:52:42 [notice] 9304#0: signal 29 (SIGIO) received 
terminate called after throwing an instance of 'std::length_error' 
    what(): basic_string::append 
2016/04/08 16:52:49 [notice] 9304#0: signal 17 (SIGCHLD) received 
2016/04/08 16:52:49 [alert] 9304#0: worker process 7328 exited on signal 6 (core dumped) 
2016/04/08 16:52:49 [notice] 9304#0: start worker process 7516 
2016/04/08 16:52:49 [notice] 9304#0: signal 29 (SIGIO) received 
terminate called after throwing an instance of 'std::length_error' 
    what(): basic_string::append 
2016/04/08 16:52:50 [notice] 9304#0: signal 17 (SIGCHLD) received 
2016/04/08 16:52:50 [alert] 9304#0: worker process 7335 exited on signal 6 (core dumped) 
2016/04/08 16:52:50 [notice] 9304#0: start worker process 7544 
2016/04/08 16:52:50 [notice] 9304#0: signal 29 (SIGIO) received 
terminate called after throwing an instance of 'std::length_error' 
    what(): basic_string::append 

を見ることができますnginxのエラー・ログから

が、これは誰にもappenedたか、誰かが正しい方向に私を蹴ることができますか?将来的にはこれを読んで誰のための事前

答えて

0

感謝。

まずは、こんにちは!

第2に、nginx pagespeedモジュールが使われています。この種のキャッシュは互換性がありません。

+0

あなたはredisでキャッシュできないことを意味しますか? – Luv33preet

関連する問題