redishobo icon indicating copy to clipboard operation
redishobo copied to clipboard

Redis-cli

Open MathieuDoyon opened this issue 11 years ago • 5 comments

How do yo use redis-cli command line

vagrant@vagrant-ubuntu-precise:~$ redis-cli flushall
The program 'redis-cli' is currently not installed.  You can install it by typing:
sudo apt-get install redis-server

MathieuDoyon avatar May 13 '13 12:05 MathieuDoyon

We need to add /opt/redis/bin/ into $PATH

keneo avatar May 13 '13 18:05 keneo

:+1: @keneo , it works.

every time I do vagrant ssh I need to re-enter PATH=$PATH:/opt/redis/bin

Is it possible to add $PATH variable to init.sh?

MathieuDoyon avatar May 14 '13 12:05 MathieuDoyon

@MathieuDoyon echo "PATH=$PATH:/opt/redis/bin" > /etc/profile.d/add_vagrant_path.sh

Also please try my fork, where I'm using native ubuntu redis package and official Vagrant ubuntu box. https://github.com/keneo/redishobo

keneo avatar May 14 '13 20:05 keneo

thank @keneo , I'm working with your fork since 2 days and all doing good since.

MathieuDoyon avatar May 16 '13 18:05 MathieuDoyon

@MathieuDoyon i'm happy :)

@JasonPunyon could you please add echo "PATH=\$PATH:/opt/redis/bin" > /etc/profile.d/add_vagrant_path.sh or pull my fork?

keneo avatar May 16 '13 19:05 keneo