我试图让InfluxDB v1.1.1只在localhost上侦听并使用IPv4 / v6。服务器在Debian 7上运行。
默认,配置,我可以在内部和外部达到涌入:
[http]
# The bind address used by the HTTP service.
bind-address = ":8086"
netstat -antp | grep "influx"
tcp6 0 0 :::8083 :::* LISTEN 813/influxd
tcp6 0 0 :::8086 :::* LISTEN 813/influxd
tcp6 0 0 :::8088 :::* LISTEN 813/influxd
curl -4 -sl -I localhost:8086/ping <- Works
curl -6 -sl -I localhost:8086/ping <- Works
尝试仅使用IPv6侦听localhost我无法使用IPv4 / IPv6在内部或外部访问:
[http]
# The bind address used by the HTTP service.
bind-address = "[::1]:8086"
netstat -antp | grep "influx"
tcp6 0 0 :::8083 :::* LISTEN 1831/influxd
tcp6 0 0 ::1:8086 :::* LISTEN 1831/influxd
tcp6 0 0 :::8088 :::* LISTEN 1831/influxd
curl -4 -sl -I localhost:8086/ping <- Does not work
curl -6 -sl -I localhost:8086/ping <- Does not work
尝试仅使用IPv4侦听localhost我可以仅使用IPv4在内部进入涌入:
[http]
# The bind address used by the HTTP service.
bind-address = "127.0.0.1:8086"
netstat -antp | grep "influx"
tcp 0 0 127.0.0.1:8086 0.0.0.0:* LISTEN 3375/influxd
tcp6 0 0 :::8083 :::* LISTEN 3375/influxd
tcp6 0 0 :::8088 :::* LISTEN 3375/influxd
curl -4 -sl -I localhost:8086/ping <- Works
curl -6 -sl -I localhost:8086/ping <- Does not work
不确定我是否遗漏了配置中的内容,或者这是不可能的。
答案 0 :(得分:0)
这似乎在have been solved到2018年4月。TL; DR:两次使用bind-address,一次在顶部(用于对influxdb进行备份/诊断访问),一次用于HTTP API:
bind-address = "127.0.0.1:8088"
[http]
bind-address = "127.0.0.1:8088"