systemctl restart redis-server code example Example: brew stop redis brew services start|run redis brew services stop redis