start redis-server in background code example Example 1: start redis server $ redis-server Example 2: run redis-server in background redis-server --daemonize yes