How to install Apache redis on Ubuntu

  Oct 29, 2015

Can someone tell me necessary steps required to install and run apache redis on ubuntu machine.

Solved 0
4 years ago 1 Answer 0 views

Answers ( 1 )

  1. 4 years ago

    Installing Redis

    Download the latest stable release tarball from


    Untar it and switch into that directory:

    tar xzf redis-stable.tar.gz
    cd redis-stable

    Proceed to with the make command:


    Run the recommended make test:

    make test

    Finish up by running make install, which installs the program system-wide.

    sudo make install

    Once the program has been installed, Redis comes with a built in script that sets up Redis to run as a background daemon.

    To access the script move into the utils directory:

    cd utils

    From there, run the Ubuntu/Debian install script:

    sudo ./

    As the script runs, you can choose the default options by pressing enter. Once the script completes, the redis-server will be running in the background.

    You can start and stop redis with these commands (the number depends on the port you set during the installation. 6379 is the default port setting):

    sudo service redis_6379 start
    sudo service redis_6379 stop

    You can then access the redis database by typing the following command:


    You now have Redis installed and running. The prompt will look like this:


    To set Redis to automatically start at boot, run:

    sudo update-rc.d redis_6379 defaults

*Avoid using any other website url of links , otherwise your answer may not be visible on website until verification is complete.

Your Answer