is redis is only for ubuntu code example
Example 1: restart redis ubuntu
# restart redis service
sudo service redis-server restart
# stop redis service
sudo service redis-server stop
Example 2: start redis ubuntu
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make