-1

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>

CinCout
  • 9,486
  • 12
  • 49
  • 67
user6542291
  • 29
  • 1
  • 6

1 Answers1

4

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
Itamar Haber
  • 47,336
  • 7
  • 91
  • 117