I have a Raspberry Pi with installed influx version 1.7.9
If I call “influxd” and I get " listen tcp 127.0.0.1:8088: bind: address already in use"
But I have write in the file “/etc/influxdb/influxdb.conf” -> bind-address = “localhost:8087”
And when I call “influx” this error occured:
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
Please check your connection settings and ensure ‘influxd’ is running.
Those don’t matter - the “services” file is just a definition of common names
for commonly-used port numbers.
What does that tell me now?
It suggests to me that there’s a difference between “127.0.0.1” and “localhost”
on this machine. It could be that “localhost” has both IPv4 and IPv6
addresses, or it could be that it’s not defined correctly at all.
Try the other command I suggested (I should have said “do this as well” rather
than “alternatively”…) ‘netstat -lptn’
And see what the output is.
Also check /etc/hosts for the definition of “localhost”.
Was there a particular reason you defined the InfluxDB bind address as
“localhost:8087” instead of “127.0.0.1:8087”?