docker-compose
我在服务器上设置了一个堆栈。
其服务之一的jaeger collector
配置如下:
collector:
image: jaegertracing/jaeger-collector:1.8
environment:
- SPAN_STORAGE_TYPE=elasticsearch
- ES_SERVER_URLS=http://some-elk-address:9200
ports:
- "14269"
- "14268:14268"
- "14267"
- "14250"
- "9411:9411"
从我的机器:
$ nc -zv -w 2 server-hostname 9411
nc: connect to server-hostname port 9411 (tcp) failed: Connection refused
但是,从该服务器内部:
# ss -tula | grep 9411
tcp LISTEN 0 128 :::9411 :::*
答案1
该问题很可能与(如ss
上面的输出清楚暗示的那样)服务仅侦听 IPv6 连接有关
root@server-hostname:~/# ss -tula -4 | grep 9411
root@server-hostname:~/# ss -tula -6 | grep 9411
tcp LISTEN 0 128 :::9411 :::*