MySQL 8.4 Release Notes
以下说明使用 semanage 二进制文件来管理端口上下文;在 RHEL 上,它是 policycoreutils-python-utils 软件包的一部分:The instructions that follow use the semanage
binary to manage port context; on RHEL, it's part of the
policycoreutils-python-utils package:
yum install -y policycoreutils-python-utils
安装 semanage 二进制文件后,您可以使用带有 port 选项的 semanage 列出使用 mysqld_port_t 上下文定义的端口。After installing the semanage binary, you can
list ports defined with the mysqld_port_t
context using semanage with the
port option.
$> semanage port -l | grep mysqld
mysqld_port_t tcp 1186, 3306, 63132-63164