I am using redis 2.4
. When I change the port in "redis.conf" file to another port redis-cli
stops working. It shows
Could not connect to Redis at 127.0.0.1:6379: Unknown error not connected>
The redis.conf
file dictates the server's behavior. To tell the command line interface to connect to your newly-defined-non-default port, use the -p
switch, e.g.:
$ redis-cli -p 12758