0

How can I config redis-cli to use host and port for a certain bash script? Something like:

redis-cli config host <host>
redis-cli config port <port>

is there way to do this?

1 Answers1

0

How about creating a bash file to run this

redis-cli -h <<redis-host>> -p <<redis-port>>
Nhat Hong Ly
  • 618
  • 4
  • 15
  • 1
    there must be a redis-cli conf file maybe, so that I don't have to pass the host and port for every bash line? –  May 14 '19 at 02:21