确保端口可用性
确保所需的端口可用。
Redis 企业软件 |
---|
在安装 Redis Enterprise Software 之前,请确保所有必需的端口都可用。
如果 Redis 分配给数据库的端口正在作系统或其他进程使用,则安装将失败。
按照相关部分配置所需的端口。
有关推荐和可选的端口配置,请参阅网络端口配置。
更新sysctl.conf
避免端口冲突
为避免端口冲突,请更新/etc/sysctl.conf
包括:
net.ipv4.ip_local_port_range = 30000 65535
OS conflicts with port 53
If port 53 is in use, the installation fails. This issue can occur in default installations of certain operating systems in which systemd-resolved
(DNS server) is running.
To prevent this issue, change the system configuration to make this port available before installation.
-
Edit /etc/systemd/resolved.conf
:
sudo vi /etc/systemd/resolved.conf
-
Add DNSStubListener=no
as the last line in the file and save the file.
-
Rename the current /etc/resolv.conf
file:
sudo mv /etc/resolv.conf /etc/resolv.conf.orig
-
Create a symbolic link for /etc/resolv.conf
:
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
Note:
You might encounter a temporary name resolution error (sudo: unable to resolve host {hostname}: Temporary failure in name resolution
), which should be fixed when you restart systemd-resolved
in the next step.
-
Restart the DNS service:
sudo service systemd-resolved restart
On this page