How to install Redis server on Ubuntu Linux 16.04

To install Redis server on Ubuntu Linux 16.04, you can use the package manager apt-get. Here’s the step by step guide:

  1. Update the package index:

     
    $ sudo apt-get update
  2. Install Redis:

     
    $ sudo apt-get install redis-server
  3. Verify the installation:

     
    $ redis-cli ping
    PONG

    If you receive a PONG response, the Redis server has been installed and is running.

  4. Start Redis service automatically on system boot:

     
    $ sudo systemctl enable redis-server.service

Note: By default, the Redis server listens on port 6379 and can be configured by editing the /etc/redis/redis.conf file. After making changes to the configuration file, you will need to restart the Redis service for the changes to take effect.

Leave a Comment