Redis labs 的安装
Install and setup
This guide shows how to install Redis Enterprise Software, which includes several steps:
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:
- Multiple Linux distributions (Ubuntu, RedHat Enterprise Linux (RHEL)/IBM CentOS, Oracle Linux)
- Amazon AWS AMI
- Docker container (for development and testing only)
- Kubernetes
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:
- Go to the Redis download page.
- Sign in with your Redis credentials or create a new account.
- In the Downloads section for Redis Enterprise Software, select the installation package for your platform then select Go.
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_flashscript 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
redislabsUID (user ID) and GID (group ID) numbers to be the same on all the nodes, create theredislabsuser 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:
- Run:
sudo vi /etc/systemd/resolved.conf - Add
DNSStubListener=noas the last line in the file and save the file. - Run:
sudo mv /etc/resolv.conf /etc/resolv.conf.orig - Run:
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf - Run:
sudo service systemd-resolved restart
- Run:
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.confto 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:
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:
- Import the key with:
gpg --import <path to GPG key>
- Verify the package signature with:
dpkg-sig --verify <path to installation package>
For RHEL:
- Import the key with:
rpm --import <path to GPG key>
- Verify the package signature with:
rpm --checksig <path to installation package>
On the node, change to the directory where the installation package is and extract the installation files:
tar vxf <tarfile name>
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
redislabsuser andredislabsgroup. 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.
Answer the installation questions when shown to complete the installation process, including the
rlcheckinstallation verification.Note:To install without answering the installation questions, either:
- Run
./install.sh -yto 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.
- Run
Create or join an existing Redis Enterprise Software cluster.
-
For geo-distributed Active-Active replication, create an Active-Active database.
Permissions and access
Redis Enterprise Software installation creates the
redislabs:redislabsuser and group.Assigning other users to the
redislabsgroup is optional. Users belonging to theredislabsgroup have permission to read and execute (e.g. use therladminstatus 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 valuesSee 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: redislabsSee Customize user and group (new installs only) |
--os-group <group> |
Operating system group associated with install; default: redislabsSee 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:
- AWS EC2 configuration
- CentOS/RHEL Firewall configuration
- Change socket file location
- Cluster DNS configuration
- Cluster load balancer setup
- File locations
- Supported platforms
- Linux swap space configuration
- Manage installation questions
- mDNS client prerequisites
- Offline installation
- User and group ownership
Next steps
Now that your cluster is set up with nodes, you can:
- Add users to the cluster with specific permissions. To begin, start with Access control.
- Create databases to use with your applications.
Redis labs 的安装的更多相关文章
- 玩转Redis之Window安装使用(干货)
距离上次定Gc.Db框架,好久没有更新博客了,今日没什么事,就打算就Redis写点东西. Redis是一个开源(BSD许可),内存存储的数据结构服务器,可用作数据库,高速缓存和消息队列代理.它支持字符 ...
- redis集群安装
1.普通安装 安装环境 centos 6.8 1.安装必要包 yum install gcc yum -y install wget 2.下载解压 wget http://download.redis ...
- Yii2框架与MongoDB拓展、Redis拓展的安装流程
@author 周煦辰 2016-03-21 这段时间新上了一个项目,使用的是Yii2框架.这里记录一下Yii2框架.Yii2-Mongo拓展.Yii2-Redis拓展等的安装流程.因为使用的系统是W ...
- Redis Windows下安装部署
下载Redis 在Redis的官网下载页上有各种各样的版本,我这次是在windows上部署的,要去GitHub上下载.我下载的是2.8.12版的,相信大家百度一下就可以搜到,这就是我们需要的: 启动R ...
- Redis linux 下安装 及扩展配置
1.首先在/usr/local/ 创建文件夹 reids Cd /usr/local/ mkdir redis 2.把redis安装包放在redis目录下面进行解压phpredis-2.2.4.tar ...
- 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/ ...
- Redis介绍以及安装(Linux)
Redis介绍以及安装(Linux) redis是当前比较热门的NOSQL系统之一,它是一个key-value存储系统.和Memcached类似,但很大程度补偿了memcached的不足,它支持存储的 ...
- redis的简单安装配置
一.简介 Redis是一种高级key-value数据库,数据可以持久化,支持的数据类型很丰富,有字符串,哈希,链表,集合和有序集合5种数据类型 Redis支持在服务器端计算集合的并,交和补集(diff ...
- Redis - 介绍及安装
Redis属于key-value数据库,与传统的数据库存在很大区别,Redis以命令的方式代替了复杂的SQL语句,并且属于内存库性质,所以运行速度非常快.内存数据会生成数据库文件保证数据持久化. Re ...
- Redis的初步安装
Redis是一个开源的使用ANSI C语言编写.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API. 下载 官网下载:http://redis.io/downlo ...
随机推荐
- 快来一起玩转LiteOS组件:Curl
摘要:Curl是一个文件传输工具,常用于数据上传和下载,本demo基于Cloud_STM32F429IGTx_FIRE开发板演示了在curl demo中调用curl提供的API来下载一个文件,并将其保 ...
- 基于Serverless的端边云一体化媒体网络
摘要:视频在边缘的创新方向在哪?下一代视频云平台什么样? 本文分享自华为云社区<探讨视频云与边缘云平台的竞争力--基于Serverless的端边云一体化媒体网络>,作者/卢志航,整理 / ...
- 再谈BOM和DOM(7):HTML DOM Event 对象属性及DOM事件详细列表
之前写<再谈BOM和DOM(4):HTML DOM Event 对象>时候,对event对象及各种dom事件没有详细道来,这里些表格.备查. Event 对象 Event 对象代表事件的状 ...
- Solon Aop 特色开发(2)注入或手动获取Bean
Solon,更小.更快.更自由!本系列专门介绍Solon Aop方面的特色: <Solon Aop 特色开发(1)注入或手动获取配置> <Solon Aop 特色开发(2)注入或手动 ...
- 以 Golang 为例详解 AST 抽象语法树
前言 各位同行有没有想过一件事,一个程序文件,比如 hello.go 是如何被编译器理解的,平常在编写程序时,IDE 又是如何提供代码提示的.在这奥妙无穷的背后, AST(Abstract Synta ...
- Go--变量的声明
Go语言是静态类型语言,因此变量(variable)是有明确类型的,编译器也会检查变量类型的正确性. 变量是一段或多段用来存储数据的内存,在go中,变量一旦被定义,一定要使用,不然会报错 内建变量类型 ...
- UVA - 10391:Compound Words (字符串水题)
题目大意 给定若干单词,按字典序输出由两个单词拼接而成的单词 思路分析 用set存储所有单词,枚举每个单词word,遍历word的所有左右子串组合情况,若左右子串均在set中,说明符合题意.时间复杂度 ...
- PVE API创建虚拟机
度娘,谷歌都搜了一圈没有找到通过PVE API创建虚拟机的方式, 于是查官网自己试了试,部分代码抄的Sam Liu大佬的作业,感谢大佬. python代码如下: import requests # s ...
- 十三、docker的四种网络类型
系列导航 一.docker入门(概念) 二.docker的安装和镜像管理 三.docker容器的常用命令 四.容器的网络访问 五.容器端口转发 六.docker数据卷 七.手动制作docker镜像 八 ...
- vue学习笔记 十八、父子组件相互传递参数
系列导航 vue学习笔记 一.环境搭建 vue学习笔记 二.环境搭建+项目创建 vue学习笔记 三.文件和目录结构 vue学习笔记 四.定义组件(组件基本结构) vue学习笔记 五.创建子组件实例 v ...