Error while connecting to Redis cache server
I am trying to connect to Redis cache server which is running on my machine (Windows 7). Whenever I start my client to put some keys into it, I get error as
"Could not connect to Redis at 127.0.0.1:6379: setsockopt(TCP_NODELAY): Unk开发者_StackOverflow中文版nown error."
My client application is in .net.
Can anybody help?
Did you try to run the redis-service.exe.
I tried this and my redis is working fine now.
Solution 1:
Check the redis server whether its running or not in services. If it is not running, run the server.
Solution 2
Run the following commands in command prompt
- SET PATH=%PATH%;”c:\Program Files\redis”
- redis-server.exe
Your client and server must be on same machine since you are running redis server on localhost(127.0.0.1).
To check whether your redis server is running and accessible, run following from command prompt.
telnet 127.0.0.1 6379
It should be able to connect if redis server is properly running
精彩评论