How to change default port (9999 to 80)

Our servers is behind firewalls ,can not reach outside server on port 9999, but can reach every server in the world on port 80 or 443.

If influxdb can listen on port 80 , then the traffic from telegraf can be sent to influxdb.

Any advise ?

Our servers is behind firewalls ,can not reach outside server on port 9999,
but can reach every server in the world on port 80 or 443.

So, you’re saying that outbound traffic is being filtered.

Uncommon, but not impossible.

If influxdb can listen on port 80 , then the traffic from telegraf can be
sent to influxdb.

So, influxdb is on the outside of your firewall, and telegraf is on the
inside ?

Any advise ?

Yes, set “bind-address” (version 1.x) or “http-bind-address” (version 2.x) in
/etc/influxdb/influxdb.conf

Antony.

Thanks @Pooh,

But in my case , there is only Binaries files in the downloaded package ( influxdb_2.0.0-beta.2_linux_amd64.tar.gz ) ,I run binary directly, no need to make an installation, as it’ not an installation package and I didn’t see this kind of configuration (/etc/influxdb/influxdb.conf) after I run influxdb in my system.

Please help !

BR

Sorry, but from that information I do not understand how you have installed
Influx on your machine.

Please tell us:

  1. Which Linux distribution are you running it on?

  2. What instructions did you follw (provide the URL) to get InfluxDB installed?

  3. How do you start and stop InfluxDB on this machine?

  4. What is the output (as root) of the command “find / -name influxdb.conf”?

Regards,

Antony.

Hello @Pooh,

  1. Which Linux distribution are you running it on?
    CentOS Linux release 8.0.1905 (Core)
2. What instructions did you follw (provide the URL) to get InfluxDB installed?
    I follow the instructions from this article (**part2**) --"https://devconnected.com/how-to-install-influxdb-on-ubuntu-debian-in-2019/"

3. How do you start and stop InfluxDB on this machine?
    systemctl start influxdb2.service  &  systemctl stop influxdb2.service

4. What is the output (as root) of the command “find / -name influxdb.conf”?
    The output is empty.

In that instructions in question 2, we create a influxdb2 service by ourselves. then start the service with systemd. Maybe I know how to configure influxdb in version 1, as it needs an installation and come with configuration files, but version 2 is another case.

BR

Well, sorry, but that’s well outside my area of expertise - I haven’t
installed InfluxDB other than via a distro-specific package (ie: a .deb or
.rpm), and those install the configuration file for the application as well as
the binaries.

Hopefully someone else who’s done something similar to the way you’ve
installed it can help out, but this is now beyond my experience.

Antony.