打开防火墙端口
代码语言:javascript
复制[root@docker etcd-v2.2.4-linux-amd64]# firewall-cmd --list-all
public (default, active)
interfaces: eno16777736 eno33554960
sources:
services: dhcpv6-client ssh
ports: 3306/tcp 80/tcp 40000/tcp 8080/tcp
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
[root@docker etcd-v2.2.4-linux-amd64]# firewall-cmd --add-port=2379/tcp
success
[root@docker etcd-v2.2.4-linux-amd64]# firewall-cmd --add-port=2380/tcp
success
[root@docker etcd-v2.2.4-linux-amd64]# firewall-cmd --list-all
public (default, active)
interfaces: eno16777736 eno33554960
sources:
services: dhcpv6-client ssh
ports: 2379/tcp 80/tcp 2380/tcp 8080/tcp 3306/tcp 40000/tcp
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
[root@docker etcd-v2.2.4-linux-amd64]#