管理安装问题
描述 Redis Enterprise Software 安装问题以及如何自动回答这些问题。
Redis 企业软件 |
---|
在 Redis Enterprise Software 安装过程中会显示几个问题。
在这里,您将找到这些问题的列表,并了解如何自动回答这些问题以执行静默安装。
安装问题
安装过程中出现几个问题:
-
Linux 交换文件 -
Swap is enabled. Do you want to proceed? [Y/N]?
我们建议您在作系统配置中禁用 Linux 交换 让 Redis Enterprise Software 控制内存分配。
-
自动作系统调优 -
Do you want to automatically tune the system for best performance [Y/N]?
要允许安装过程优化 Redis Enterprise Software 的作系统,请回答
Y
. 安装过程会提示您输入其他信息。这
/opt/redislabs/sbin/systune.sh
文件包含有关优化过程的详细信息。 -
网络时间 -
Do you want to set up NTP time synchronization now [Y/N]?
Redis Enterprise Software 要求所有集群节点都具有同步时间。 您可以让安装过程配置 NTP 或者您可以手动配置 NTP。
-
防火墙端口 -
Would you like to open RedisLabs cluster ports on the default firewall zone [Y/N]?
Redis Enterprise Software 要求所有节点都打开特定的网络端口。 要打开端口,您可以:
- 答
Y
让安装过程打开这些端口。 - 答
N
并为 RHEL/CentOS 防火墙手动配置防火墙。 - 答
N
并为您的作系统手动配置节点上的防火墙。
- 答
-
安装验证 (rlcheck) -
Would you like to run rlcheck to verify proper configuration? [Y/N]?
运行
rlcheck
安装验证以确保安装成功完成。 如果您想在以后运行此验证,可以运行:/opt/redislabs/bin/rlcheck
-
User already exists -
The user 'redislabs' already exists, which may lead to problems if it wasn't configured correctly. Would you like to proceed with the installation? (Y/N)?
-
Group already exists -
The group 'redislabs' already exists, which may lead to problems if it wasn't configured correctly. Would you like to proceed with the installation? (Y/N)?
Answer install questions automatically
To perform a silent (or automated) install, answer the questions when you start the install.
Answer yes to all questions
To automatically answer yes
to all questions (which accepts the default values), run the installation script with the -y
parameter:
./install.sh -y
Configure file to answer
Use an answer file to manage your response:
-
Create a text file to serve as an answer file.
The answer file can contain any of the parameters for the installation questions and indicate the answer for each question with yes
or no
.
For example:
ignore_swap=no
systune=yes
ntp=no
firewall=no
rlcheck=yes
ignore_existing_osuser_osgroup=no
If you use systune=yes
, the installation answers yes
to all of the system tuning questions.
-
Run the installation script with the -c
command-line option and add the path to the answer file.
For example:
./install.sh -c /home/user/answers
On this page