I am very much aware that this might be a really stupid question/problem, but I cannot figure out what is going wrong. I have 2.6.13 installed and running. Everything seem fine when using redis-cli:
[root@n7-z01-0a2a0e73 ~]# /opt/redis/bin/redis-cli
redis
127.0.0.1:6379> set foo 7
OK
redis
127.0.0.1:6379> get foo
"7"
That makes me believe that at the very least redis is working. The problem is when I try to get or put anything via HTTP. For example, I was under the impression I could just do a GET on /foo and should get a 200 OK response returning "7". But I get this:
[root@n7-z01-0a2a0e73 ~]# telnet 127.0.0.1 6379
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /foo
$-1
If I try a get using curl, I get some errors back, then it hangs:
[root@n7-z01-0a2a0e73 ~]# curl -D -
http://localhost:6379/foo-ERR wrong number of arguments for 'get' command
-ERR unknown command 'User-Agent:'
-ERR unknown command 'Host:'
-ERR unknown command 'Accept:'
I can get rid of the last three errors by sending blank headers, but GET just is not working. What am I missing?
I should point out that I have this installed on more than one box and it is doing the same thing on both. I also have an older redis install doing the same thing.
Any advice would be appreciated.