Install Redis
cd ~ && wget http://download.redis.io/redis-stable.tar.gz | |
tar xvzf redis-stable.tar.gz | |
cd redis-stable | |
make | |
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 | |
redis-cli | |
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