redis command line stop code example
Example 1: redis server stop
$ redis-cli shutdown
Example 2: brew stop redis
brew services start|run redis
brew services stop redis
$ redis-cli shutdown
brew services start|run redis
brew services stop redis