run redis as linux service code example Example 1: redis cache start sudo /etc/init.d/redis_6379 start Example 2: install redis brew install redis