ubuntu redis server restart 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
$ redis-cli shutdown
# restart redis service
sudo service redis-server restart
# stop redis service
sudo service redis-server stop