Install Redis Enterprise Software on Linux.
| Redis Enterprise Software |
|---|
After you download a Redis Enterprise Software installation package, install it on one of the nodes in the cluster.
For installation on machines without an internet connection, see Offline installation.
To install Redis Enterprise Software, use the command line:
Copy the installation package to the node.
On the node, change to the directory where the installation package is located and extract the installation files:
tar vxf <tarfile name>
(Optional) Use the GPG key file to confirm the authenticity of Ubuntu/Debian or RHEL RPM packages:
For Ubuntu:
gpg --import <path to GPG key>
dpkg-sig --verify </path-to/package.deb>
For RHEL:
rpm --import <path to GPG key>
rpm --checksig </path-to/package.rpm>
To start the installation process, run the installation script. See installation script options for a complete list of command-line options.
For default installation:
sudo ./install.sh
For custom installation directories:
If you need to specify custom storage paths for persistent or ephemeral storage during cluster setup, you must install Redis Enterprise Software to custom directories.
sudo ./install.sh --install-dir <path> --config-dir <path> --var-dir <path>
For detailed information about custom installations, see Customize installation directories.
redislabs user and redislabs group. If needed, you can specify a different user and group during the installation.sudo to run the installation script.Answer the installation questions when shown to complete the installation process.
To skip the installation questions, use one of the following methods:
./install.sh -y to answer yes to all of the questions.When installation completes successfully, the output displays the Cluster Manager UI's IP address:
Summary:
-------
ALL TESTS PASSED.
2017年04月24日 10:54:15 [!] Please logout and login again to make
sure all environment changes are applied.
2017年04月24日 10:54:15 [!] Point your browser at the following
URL to continue:
2017年04月24日 10:54:15 [!] https://<your_ip_here>:8443
Repeat this process for each node in the cluster.
If you want to use Redis Flex or Auto Tiering for your databases, review the prerequisites, storage requirements, and other considerations and prepare and format the flash memory.
After you install Redis Enterprise Software, use the prepare_flash script to prepare and format flash memory:
sudo /opt/redislabs/sbin/prepare_flash.sh
This script finds unformatted disks and mounts them as RAID partitions in /var/opt/redislabs/flash.
To verify the disk configuration, run:
sudo lsblk
To learn more about customization and find answers to related questions, see:
Several Redis Enterprise Software installation reference files are installed to the directory /etc/opt/redislabs/ even if you use custom installation directories.
As a workaround to install Redis Enterprise Software without using any root directories, do the following before installing Redis Enterprise Software:
Create all custom, non-root directories you want to use with Redis Enterprise Software.
Mount /etc/opt/redislabs to one of the custom, non-root directories.
Create or join an existing Redis Enterprise Software cluster.
For geo-distributed Active-Active replication, create an Active-Active database.
Add users to the cluster with specific permissions. To begin, start with Access control.