how to tell if redis service restarted on ubuntu code example
Example 1: redis server stop
$ redis-cli shutdown
Example 2: restart redis ubuntu
# restart redis service
sudo service redis-server restart
# stop redis service
sudo service redis-server stop
Example 3: how to install redis
sudo apt-get install redis-server
Example 4: redis cache start
sudo /etc/init.d/redis_6379 start