Centos7开放端口
firewall-cmd --zone=public --add-port=5672/tcp --permanent
firewall-cmd --reload
Centos7中docker开启远程访问
1. systemctl start docker
2. vi /usr/lib/systemd/system/docker.service
3. 加入
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock
systemctl daemon-reload
systemctl restart docker
检查端口是否开启
netstat -tnlp
查看防火墙所有开放的端口
firewall-cmd --list-ports.
原文:https://www.cnblogs.com/yifanSJ/p/13159002.html