high-availability-add-on
latest
false
端口 53 的安装问题
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

High Availability Add-on 安装指南
上次更新日期 2025年3月26日
端口 53 的安装问题
Linux 为 DNS 服务器保留端口 53。有时, High Availability Add-on (HAA) 的安装可能会失败,因为端口 53 已在使用中。 发生这种情况是因为 HAA 包含其自己的 DNS 服务器,该服务器需要打开端口 53。
某些 Linux 系统通常会默认运行 DNS 服务器。为确保 HAA 安装成功,需要禁用这些服务器。如果您使用的是 Ubuntu Linux,则 DNS 服务器通常为
systemd-resolved
,而在 RHEL 上,则可能是dnsmasq
。
以下各节提供有关如何停用 DNS 服务器的说明。
如要停用
systemd-resolved
服务,请参阅Redis 文档。
如要停用
dnsmasq
服务,请按照以下步骤操作:
-
如果服务正在运行,请将其停止:
sudo systemctl stop dnsmasq
sudo systemctl stop dnsmasq -
停止该服务后,您必须将其禁用,以防止其在系统重新启动时自动启动:
sudo systemctl disable dnsmasq
sudo systemctl disable dnsmasq -
屏蔽服务以防止手动或由任何其他服务启动:
sudo systemctl mask dnsmasq
sudo systemctl mask dnsmasq如果服务被屏蔽,则即使另一个服务或脚本尝试启动该服务,也将无法启动该服务。
-
验证该服务是否不再处于活动状态,并且不会在以下系统重新启动时启动:
sudo systemctl status dnsmasq
sudo systemctl status dnsmasq