Influxdb 强制XDB仅在本地主机上侦听

Influxdb 强制XDB仅在本地主机上侦听,influxdb,Influxdb,我正在尝试使XDB v1.1.1仅在本地主机上侦听,并同时使用IPv4/v6。服务器正在Debian7上运行 默认值,配置,我可以在内部和外部到达内流: [http] # The bind address used by the HTTP service. bind-address = ":8086" netstat -antp | grep "influx" tcp6 0 0 :::8083 :::*

我正在尝试使XDB v1.1.1仅在本地主机上侦听,并同时使用IPv4/v6。服务器正在Debian7上运行

默认值,配置,我可以在内部和外部到达内流:

[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
[http]
#HTTP服务使用的绑定地址。
绑定地址=“:8086”
netstat-antp | grep“涌入”
tcp6 0:::8083::*听813/xd
tcp6 0:::8086::*听813/xd
tcp6 0:::8088:::*听813/xd
curl-4-sl-I localhost:8086/ping这似乎是在2018年4月。TL;DR:使用绑定地址两次,一次在顶部(用于对XDB的备份/诊断访问),一次用于HTTP API:

bind-address = "127.0.0.1:8088"

[http]
  bind-address = "127.0.0.1:8088"

目前,这在XDB中是不可能的。我鼓励您在XDB上打开一个窗口,或者查看,看看是否有任何解决方法。
[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
bind-address = "127.0.0.1:8088"

[http]
  bind-address = "127.0.0.1:8088"