check if redis is running mac code example
Example 1: redis cache start
sudo /etc/init.d/redis_6379 start
Example 2: redis quicstart
$ sudo apt install redis-server
$ redis-server
sudo /etc/init.d/redis_6379 start
$ sudo apt install redis-server
$ redis-server