1.
firewall-cmd --permanent --add-port=5672/tcp
firewall-cmd --reload
setsebool -P nis_enabled 1 (关闭selinux)
2.粗暴的方法
systemctl stop firewalld
systemctl disable firewalld
setenforce 0 (记得/etc/selinux/config也改成 disable,否则重启就不生效了)
查看selinux状态
/usr/sbin/sestatus -v
SELinux status: disabled