I'm using Redis 2.8 on Windows which I downloaded from github release. After unzip and I've set maxheap in redis.windows.conf
file. After running redis-server redis.windows.conf
I get # Creating Server TCP listening socket *:6379:No such file or directory
, but redis is not running correctly. I don't know why.
You must've used the .msi installer. It automagically registers a windows service which starts instantly after the installation (at least on my win 10 machine).
This service uses the default config and binds to port 6379. When you start redis-server from the command line, if you haven't specified a different port through a config file, it picks up the default config again and tries to bind to port 6379 which fails.
Your cli works because it connects to the redis service that's already listening on 6379. Your shutdown command stops the service and from there things work as expected. Mystery solved. Case closed.
cd
to the bin directory of Redis, and run
open another cmd window, cd
to the bin directory of Redis, and run
4.redis-server.exe
Now service is normally.I run redis-cli.exe
in the same window,and it connect correctly.Then I typed shutdown,the service is over.Reopen a command windows,type redis-server
.The service run correctly.But I still did not understand why # Creating Server TCP listening socket *:6379:No such file or directory
came out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With