Redis Quick Installation - Ubuntu 16.04

  May 9, 2019      2m
   

Shell script for installing Redis on Ubuntu 16.04

Redis Quick Installation - Ubuntu 16.04

Redis - Who are you?

  • In-memory data structure store
  • Message broker
  • High performance API
  • Store data as key-value (NoSQL)
  • Redis-server and Redis-client (redis-cli)
  • Free to scale up

Simply uses it as a database!

Redis Installation Script

redis_install.sh

sudo apt-get update
sudo apt-get install build-essential
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
sudo make install

# install redis server via utility script
./redis-stable/utils/install_server.sh

Run the above script with the following command:

sudo sh redis_install.sh

Redis Commands

sudo service redis_6379 status
sudo service redis_6379 restart

Redis Server Test

redis-cli
127.0.0.1:6379> ping
PONG

PONG response means that you have installed Redis server successfully!


References: