using redis ubuntu nosql code example
Example 1: install redis ubuntu
sudo apt update
sudo apt install redis-server
sudo systemctl restart redis.service
sudo systemctl status redis
redis-cli
Example 2: restart redis ubuntu
# restart redis service
sudo service redis-server restart
# stop redis service
sudo service redis-server stop