Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redis-cli - Selecting which instance?

I'm currently running multiple redis instances on one box. Each have their own config, init.d, and listen on different ports. My application(s) have no problem connecting via the redis clients, but I'd like to be able to connect to each one using redis-cli. I couldn't find any information on $:redis-cli [options] in either the redis-doc or on redis.io. Any ideas?

like image 705
Chris Laskey Avatar asked Jun 01 '11 20:06

Chris Laskey


People also ask

How do I access Redis from command line?

To start Redis client, open the terminal and type the command redis-cli. This will connect to your local server and now you can run any command.


2 Answers

You can specify the server host and port using -h and -p parameters. E.g.:

redis-cli -h 127.0.0.1 -p 6379 
like image 200
H6. Avatar answered Oct 19 '22 12:10

H6.


Try this Redis GUI management tool, it also have console support - http://redisdesktop.com/

redis desktop manager consoles

like image 41
Shan Valleru Avatar answered Oct 19 '22 10:10

Shan Valleru