下面的说明使用semanage
二进制管理端口上下文;在RHEL上,它是policycoreutils-python-utils
包:
Yum install -y policycoretils -python-utils
安装好后semanage
二进制文件,您可以列出用mysqld_port_t
环境中使用semanage
与港口
选择。
Shell > semanage port -l | grep mysqld mysqld_port_t TCP 1186, 3306, 63132-63164