首页 > 数据库 >Redis labs 的安装

Redis labs 的安装

时间:2022-10-14 07:11:26浏览次数:246  
标签:installation Redis labs install Enterprise group 安装 your

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:

OptionDescription
-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:

标签:installation,Redis,labs,install,Enterprise,group,安装,your
From: https://www.cnblogs.com/jinanxiaolaohu/p/16790279.html

相关文章

  • maven下载、安装,创建
    1,maven准备:需要安装JDK并配置好环境变量下载地址:https://maven.apache.org/download.cgi2,下载完成之后解压到当前文件夹:D:\apache-maven-3.8.6 3,配置Maven环境变量......
  • JDK安装
    安装搜索JDK8版本,注册Oracle账户,查看自己电脑属性,接受协议,下载适用版本更改安装路径,默认为C盘,可以放到其他盘,新建一个好记的文件夹(新的文件夹名称不可带汉字,否则会安......
  • IIS 安装配置全攻略
    WEB篇Windows2000Server、Windows2000AdvancedServer以及Windows2000Professional的默认安装都带有IIS,也可以在Windows2000安装完毕后加装IIS。IIS......
  • Redis的数据持久化
    为什么要持久化Redis是内存数据库,宕机后数据会消失,Redis重启后快速恢复数据,要提供持久化机制。Redis的两种持久化方式:RDB和AOFRedis持久化不保证数据的完整性,有可能会丢数据......
  • 编译安装hls协议切片工具 m3u8-segmenter
    操作系统:Ubuntu16.04.4amd64安装​​http://m3u8-segmenter.inodes.org/​​方式安装m3u8-segmenter报错,于是有了这篇文章aptinstallaptitudeapt-add-repositoryppa:joh......
  • 虚拟上安装Redis和MongoDB教程---Redis安装
    为了完成后续大数据实验,不得不进行工具的安装(自我感觉挺麻烦的)一、首先安装redis1、官网:https://redis.io/download2、将下载好的软件上传至虚拟机上(我上传到自己建立......
  • Debian安装WPS的方法
    1、防止安装失败,请尽量重启电脑,关闭系统的软件商店,因为商店的权限可能会锁住pkg的配置文件,导致无法安装wps。2、将原机残废的WPS卸载干净,卸载方法:手动或命令行操作。sudo......
  • 思科3850交换机从16.3.x到16.x安装模式下固件升级
    今天收到一个需求,把一台思科交换机3850做一个固件升级,这个活咱都干过N多次了,都不叫事。常规操作,但是故事就发生了。先说过程吧,确认设备的具体型号。Showversion其实那个型......
  • 11.1 LAMP架构介绍 11.2 MySQL、MariaDB介绍 11.3/11.4/11.5 MySQL安装
     11.1LAMP架构介绍LAMP是Linux+Apache(httpd)+MySQL+PHP的简称•Linux:操作系统•Apache(httpd):WEB服务器软件,提供WEB服务•MySQL:关系型数据库用于存储数据(字符串)•......
  • 安装
    组合优化神器:riskfolio-lib官方文档REFPython:安装cvxpy,进行凸优化......