3
votes

We have installed the redis client.

When we type the following command inside C:\Program Files\Redis\redis-cli.exe:

redis-cli -h redis-server.example.com -p 6390 ping

It throws the following error:

(error) ERR unknown command 'redis-cli'

And the same command when fired inside inside C:\Windows\System32\cmd.exe throws the following error:

'redis-cli' is not recognized as an internal or external command, operable program or batch file.

Notice that Path is set to C:\Program Files\Redis\redis-cli.exe

What is the problem?

2
Only put the directory containing redis-cli.exe into the PATH. C:\Program Files\Redis - lit

2 Answers

9
votes

Your PATH should be set to directory, not to the file

"C:\Program Files\Redis\"
1
votes

For me the path was the following:

C:\Program Files\Memurai

Then I had to run the following command instead:

memurai-cli

The Memurai is a Redis Alternative for Windows.