start redis cli mac code example Example 1: start redis server $ redis-server Example 2: install redis brew install redis