Install and setup

This guide shows how to install Redis Enterprise Software, which includes several steps:

  1. Plan your deployment
  2. Download the installation package
  3. Prepare to install
  4. Perform the install

Depending on your needs, you may also want to customize the installation.

Here, you’ll learn how to perform each step.

Plan your deployment

Before installing Redis Enterprise Software, you need to:

  • Set up your hardware.

  • Choose your deployment platform.

    Redis Enterprise Software supports a variety of platforms, including:

    For complete details, see Supported platforms

  • Open appropriate network ports in the firewall to allow connections to the nodes.

  • Configure cluster DNS so that cluster nodes can reach each other by DNS names.

  • By default, the install process requires an Internet connection to install dependencies and to synchronize the operating system clock. To learn more, see Offline installation.

Download the installation package

To download the installation package for any of the supported platforms:

  1. Go to the Redis download page.
  2. Sign in with your Redis credentials or create a new account.
  3. In the Downloads section for Redis Enterprise Software, select the installation package for your platform then select Go.
Note:

Before you install the Linux package or AWS AMI on an AWS EC2 instance, review the configuration requirements for AWS EC2 instances.

Prepare to install on Linux

Before installing, review these notes:

  • Review the security considerations for your deployment.

  • If you want to use Redis on Flash (RoF) for your databases, review the prerequisites, storage requirements, and other considerations for RoF databases and prepare and format the flash memory.

    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
  • Disable Linux swap on all cluster nodes.

  • Make sure that you have root-level access to each node, either directly or with sudo.

  • If you require the redislabs UID (user ID) and GID (group ID) numbers to be the same on all the nodes, create the redislabs user and group with the required numbers on each node.

  • When port 53 is in use, the installation fails. This is known to happen in default Ubuntu 18.04 installations in which systemd-resolved (DNS server) is running.

    To work around this issue, change the system configuration to make this port available before installation. Here’s one way to do so:

    1. Run: sudo vi /etc/systemd/resolved.conf
    2. Add DNSStubListener=no as the last line in the file and save the file.
    3. Run: sudo mv /etc/resolv.conf /etc/resolv.conf.orig
    4. Run: sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
    5. Run: sudo service systemd-resolved restart
  • Make sure that the ports Redis assigns to databases are available; that is, they’re not being used by the operating system or other processes.

    To avoid port collision, we recommend updating /etc/sysctl.conf to include:

    net.ipv4.ip_local_port_range = 30000 65535

Install on Linux

After you download the .tar file installation package, install the package on one of the nodes in the cluster.

To install from the CLI:

  1. Copy the installation package to the node.

    (Optional) Use the GPG key file to confirm authenticity of Ubuntu/Debian or RHEL RPM packages:

    • For Ubuntu:

      1. Import the key with:
      gpg --import <path to GPG key>
      1. Verify the package signature with:
      dpkg-sig --verify <path to installation package>
    • For RHEL:

      1. Import the key with:
      rpm --import <path to GPG key>
      1. Verify the package signature with:
      rpm --checksig <path to installation package>
  2. On the node, change to the directory where the installation package is and extract the installation files:

    tar vxf <tarfile name>
  3. To install, run:

    sudo ./install.sh
    Note:

    • The Redis Enterprise Software files are installed in the default file locations.
    • By default, Redis Enterprise Software runs on the OS as the redislabs user and redislabs group. If needed, you can specify a different user and group during the installation.
    • You must either be logged in as the root user or use sudo to run the install process.
  4. Answer the installation questions when shown to complete the installation process, including the rlcheck installation verification.

    Note:

    To install without answering the installation questions, either:

    • Run ./install.sh -y to answer yes to all of the questions.
    • Use an answer file to answer installation questions automatically.

    When the installation completes successfully, the IP address of the admin console is displayed:

    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

    Redis Enterprise Software is now installed on the node.

    Repeat this process for each node in the cluster.

  5. Create or join an existing Redis Enterprise Software cluster.

  6. Create a database.

    For geo-distributed Active-Active replication, create an Active-Active database.

Permissions and access

  • Redis Enterprise Software installation creates the redislabs:redislabs user and group.

    Assigning other users to the redislabs group is optional. Users belonging to the redislabs group have permission to read and execute (e.g. use the rladmin status command) but are not allowed to write (or delete) files or directories.

  • Redis Enterprise Software is certified to run with permissions set to 750, an industry standard.

    We recommend against reducing permissions to 700; this configuration has not been tested and is not supported.

Install command line-options

Run ./install.sh --help to view command-line options supported by the install script.

At this time, the following options are supported:

Option Description
-y Automatically answers yes to all install prompts, accepting all default values
See Manage install questions
-c <answer file> Specify answer file used to respond to install prompts
See Manage install questions
-s <socket dir> Specify directory for redislabs unix sockets (new installs only)
--install-dir <dir> Specifies installation directory (new installs only)
See Customize install locations
--config-dir <dir> Configuration file directory (new installs only)
See Customize install locations
--var-dir <dir> Var dir used for installation (new installs only)
See Customize install locations
--os-user <user> Operating system user account associated with install; default: redislabs
See Customize user and group (new installs only)
--os-group <group> Operating system group associated with install; default: redislabs
See Customize user and group (new installs only)

The next section provides additional configuration details.

More info and options

If you’ve already installed Redis Enterprise Software, you can also:

More info is available to help with customization and related questions:

Next steps

Now that your cluster is set up with nodes, you can:

Redis labs 的安装的更多相关文章

  1. 玩转Redis之Window安装使用(干货)

    距离上次定Gc.Db框架,好久没有更新博客了,今日没什么事,就打算就Redis写点东西. Redis是一个开源(BSD许可),内存存储的数据结构服务器,可用作数据库,高速缓存和消息队列代理.它支持字符 ...

  2. redis集群安装

    1.普通安装 安装环境 centos 6.8 1.安装必要包 yum install gcc yum -y install wget 2.下载解压 wget http://download.redis ...

  3. Yii2框架与MongoDB拓展、Redis拓展的安装流程

    @author 周煦辰 2016-03-21 这段时间新上了一个项目,使用的是Yii2框架.这里记录一下Yii2框架.Yii2-Mongo拓展.Yii2-Redis拓展等的安装流程.因为使用的系统是W ...

  4. Redis Windows下安装部署

    下载Redis 在Redis的官网下载页上有各种各样的版本,我这次是在windows上部署的,要去GitHub上下载.我下载的是2.8.12版的,相信大家百度一下就可以搜到,这就是我们需要的: 启动R ...

  5. Redis linux 下安装 及扩展配置

    1.首先在/usr/local/ 创建文件夹 reids Cd /usr/local/ mkdir redis 2.把redis安装包放在redis目录下面进行解压phpredis-2.2.4.tar ...

  6. linux php redis扩展的安装和redis服务的安装

    一.php redis扩展的安装 wget http://pecl.php.net/get/redis-2.2.7.tgztar zvxf redis-2.2.7.tgzcd redis-2.2.7/ ...

  7. Redis介绍以及安装(Linux)

    Redis介绍以及安装(Linux) redis是当前比较热门的NOSQL系统之一,它是一个key-value存储系统.和Memcached类似,但很大程度补偿了memcached的不足,它支持存储的 ...

  8. redis的简单安装配置

    一.简介 Redis是一种高级key-value数据库,数据可以持久化,支持的数据类型很丰富,有字符串,哈希,链表,集合和有序集合5种数据类型 Redis支持在服务器端计算集合的并,交和补集(diff ...

  9. Redis - 介绍及安装

    Redis属于key-value数据库,与传统的数据库存在很大区别,Redis以命令的方式代替了复杂的SQL语句,并且属于内存库性质,所以运行速度非常快.内存数据会生成数据库文件保证数据持久化. Re ...

  10. Redis的初步安装

    Redis是一个开源的使用ANSI C语言编写.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API. 下载 官网下载:http://redis.io/downlo ...

随机推荐

  1. 解读Java内存模型中Happens-Before的8个原则

    摘要:本文我们就结合案例程序来说明Java内存模型中的Happens-Before原则. 本文分享自华为云社区<[高并发]一文秒懂Happens-Before原则>,作者: 冰 河. 在正 ...

  2. 千年荒漠变绿洲,看沙漠“卫士”携手昇腾AI植起绿色希望

    摘要:风沙肆虐,沙漠侵蚀神州大地,华东师范大学基于昇腾AI基础软硬件平台研制的种树机器人成为沙漠"卫士",穿越戈壁,跨越千里,为荒漠治理贡献力量!华师大携手昇腾AI共同植起绿色希望 ...

  3. 如何处理分析Flink作业反压的问题?

    摘要:反压是 Flink 应用运维中常见的问题,它不仅意味着性能瓶颈还可能导致作业的不稳定性. 反压(backpressure)是实时计算应用开发中,特别是流式计算中,十分常见的问题.反压意味着数据管 ...

  4. 详解JQuery框架的五大选择器

    摘要:今天来和大家分享一下JQuery的五种选择器的详细使用方法. 本文分享自华为云社区<[JQuery框架]五大选择器"全家桶"详解!!!>,原文作者:灰小猿 . 今 ...

  5. 知道ThreadLocal吗?一起聊聊到底有啥用

    摘要:ThreadLocal是 java 提供的一个方便对象在本线程内不同方法中传递和获取的类.用它定义的变量,仅在本线程中可见和维护,不受其他线程的影响,与其他线程相互隔离. 本文分享自华为云社区& ...

  6. 如何使用TCP/IP开发网络程序

    摘要:进行TCP协议网络程序的编写,关键在于ServerSocket套接字的熟练使用,TCP通信中所有的信息传输都是依托ServerSocket类的输入输出流进行的. 本文分享自华为云社区<Ja ...

  7. PPT 动画-滚动数字

    插入一个文本框,输入 0~9 调整边框大小,使其竖着排列 页面切换,选择平滑

  8. JSP开发模式(四种模式)

    原作者为 RioTian@cnblogs, 本作品采用 CC 4.0 BY 进行许可,转载请注明出处. 学习编程开发少不了学习开发模式, JSP在创立至今有 \(4\) 种流行的开发模式: 包括 JS ...

  9. AtCoder ABC 165 D - Floor Function (Good, 手动模拟推出公式)

    题目链接:Here 题意: 给出正整数 \(A,B,N (1\le A\le 1e6,1\le B,N\le1e12)\) ,对于 \(x\in [0,N]\) 求出 \(\left\lfloor\f ...

  10. 【每日一题】37. [JSOI2007]建筑抢修 (优先队列 + 贪心)

    补题链接:Here 算法涉及:优先队列 + 贪心 因为每一个都有截止时间,按照截止时间排序下来, 如果修复这个工程的时间+修复这个之前的总时间<=截止时间.那么就是可以在规定的时间内完成. 保证 ...