how to start redis server with redis-cli code example Example 1: start redis server $ redis-server Example 2: how to install redis sudo apt-get install redis-server