In this article we will be going to see how to install redis on ubuntu. Redis is an open source in memory based database. It is a data structure store, and is used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.
Let’s see the installation steps for Redis. Run below set of commands to install redis.
mkdir redis && cd redis
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
sudo make install
To start redis server, run below command.
To test if redis is installed and running, run below command.
If you get PONG as response that means it is installed and running
If you want to set some value in redis, run below commands.
redis> set foo bar
redis> get foo
Please follow and like us: