sudo service redis status mac code example
Example 1: how to start redis on mac
// use this command
redis-server
redis-cli
Example 2: brew stop redis
brew services start|run redis
brew services stop redis
// use this command
redis-server
redis-cli
brew services start|run redis
brew services stop redis