Ensure port availability

Make sure required ports are available.

Before installing Redis Enterprise Software, make sure all required ports are available.

If ports that Redis assigns to the database are being used by the operating system or other processes, the installation fails.

Follow the relevant sections to configure required ports.

For recommended and optional port configuration, see Network port configurations.

Update sysctl.conf to avoid port collisions

To avoid port collision, update /etc/sysctl.conf to include:

net.ipv4.ip_local_port_range = 30000 65535

Ubuntu conflicts with port 53

If port 53 is in use, the installation fails. This can occur in default installations of Ubuntu 18.04 and 20.04 in which systemd-resolved (DNS server) is running.

To prevent this issue, change the system configuration to make this port available before installation.

  1. Edit /etc/systemd/resolved.conf:

    sudo vi /etc/systemd/resolved.conf
  2. Add DNSStubListener=no as the last line in the file and save the file.

  3. Rename the current /etc/resolv.conf file:

    sudo mv /etc/resolv.conf /etc/resolv.conf.orig
  4. Create a symbolic link for /etc/resolv.conf:

    sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
    You might encounter a temporary name resolution error (sudo: unable to resolve host {hostname}: Temporary failure in name resolution), which should be fixed when you restart systemd-resolved in the next step.
  5. Restart the DNS service:

    sudo service systemd-resolved restart
Back to top ↑