start redis ubuntu code example

Example 1: redis ubuntu install

# This explanation shows how to install the latest redis version on ubuntu

# add redis repository - as ubuntu normal repository holds an old version of redis
sudo add-apt-repository ppa:redislabs/redis
sudo apt-get update

# install redis
sudo apt-get install redis-server

# set redis to auto-strat on boot
sudo systemctl enable redis-server
sudo systemctl daemon-reload

Example 2: redis cache start

sudo /etc/init.d/redis_6379 start

Example 3: install redis

brew install redis

Example 4: start redis ubuntu

wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make

Tags:

Misc Example