Skip to content

Install Redis

To install Redis, SSH into your server as the root user and run the following command.

Terminal window
sudo apt-get install redis-server

Once installed, Redis will listen on port 6379.

View Redis activity

While developing or debugging your application, you can view every command processed by the Redis server by running the following command.

Terminal window
redis-cli monitor

Example output:

1339518083.107412 [0 127.0.0.1:60866] "keys" "*"
1339518087.877697 [0 127.0.0.1:60866] "dbsize"
1339518090.420270 [0 127.0.0.1:60866] "set" "x" "6"
1339518096.506257 [0 127.0.0.1:60866] "get" "x"
1339518099.363765 [0 127.0.0.1:60866] "del" "x"
1339518100.544926 [0 127.0.0.1:60866] "get" "x"

Use Ctrl-C to exit monitoring.