Since we are running an operating system that uses the systemd init system, we can change this to systemd:ĮxecStart=/usr/local/bin/redis-server /etc/redis/nfĮxecStop=/usr/local/bin/redis-cli shutdown In the file, find the supervised directive. Next, we can open the file to adjust a few items in the configuration:
Once it is complete, you can install the binaries onto the system by typing: This will typically take a few minutes to run. Now, we can compile the Redis binaries by typing:Īfter the binaries are compiled, run the test suite to make sure everything was built correctly. Move into the Redis source directory structure that was just extracted:
This is always available at a stable download URL: Now, download the latest stable version of Redis. Since we won’t need to keep the source code that we’ll compile long term (we can always re-download it), we will build in the /tmp directory.
When you are ready to begin, log in to your Ubuntu 16.04 server with your sudo user and continue below.
You can learn how to set up an account with these privileges by following our Ubuntu 16.04 initial server setup guide. You will need a non-root user with sudo privileges to perform the administrative functions required for this process. To complete this guide, you will need access to an Ubuntu 16.04 server.
In this guide, we will demonstrate how to install and configure Redis on an Ubuntu 16.04 server. Redis is an in-memory key-value store known for its flexibility, performance, and wide language support.