Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Redis
cd ~ && wget
tar xvzf redis-stable.tar.gz
cd redis-stable
sudo cp src/redis-server /usr/local/bin/
sudo cp src/redis-cli /usr/local/bin/
# redis is now installed but we need to proof it
sudo mkdir /etc/redis
sudo mkdir /var/redis
sudo cp utils/redis_init_script /etc/init.d/redis_6379
# if you need to edit the port then
# sudo vi /etc/init.d/redis_6379
sudo cp redis.conf /etc/redis/6379.conf
sudo mkdir /var/redis/6379
# system startup commands
sudo update-rc.d redis_6379 defaults
# start it up
/etc/init.d/redis_6379 start
# testing the connection
ping # should respond with PONG
save # should dump a file to /var/redis/6379/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.