

Start by checking that the Redis service is running: We will go over a handful of ways to check that Redis is working correctly in this step. Step 2 - Testing RedisĪs with any newly-installed software, it’s a good idea to ensure that Redis is functioning as expected before making any further changes to its configuration. Before you begin using it, though, it’s prudent to first check whether Redis is functioning correctly. With that, you’ve installed and configured Redis and it’s running on your machine. Then, restart the Redis service to reflect the changes you made to the configuration file: That’s the only change you need to make to the Redis configuration file at this point, so save and close it when you are finished. # They do not enable continuous liveness pings back to your supervisor. # Note: these supervision methods only signal "process is ready." # UPSTART_JOB or NOTIFY_SOCKET environment variables # supervised auto - detect upstart or systemd method based on # supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET # supervised upstart - signal upstart by putting Redis into SIGSTOP mode # supervised no - no supervision interaction # If you run Redis from upstart or systemd, Redis can interact with your Since you are running Ubuntu, which uses the systemd init system, change this to systemd: The supervised directive is set to no by default. This directive allows you to declare an init system to manage Redis as a service, providing you with more control over its operation. Inside the file, find the supervised directive. Open this file with your preferred text editor: Following this, there is one important configuration change to make in the Redis configuration file, which was generated automatically during the installation. This will download and install Redis and its dependencies. In order to get the latest version of Redis, we will use apt to install it from the official Ubuntu repositories.įirst, update your local apt package cache if you haven’t done so recently: Step 1 - Installing and Configuring Redis When you are ready to begin, log in to your Ubuntu 18.04 server as your sudo user and continue below. You can set this up by following our Initial Server Setup guide. To complete this guide, you will need access to an Ubuntu 18.04 server that has a non-root user with sudo privileges and a basic firewall configured. This tutorial demonstrates how to install, configure, and secure Redis on an Ubuntu 18.04 server. Redis is an in-memory key-value store known for its flexibility, performance, and wide language support.
