systemd: Add instructions for passing arguments to influxd (#2163)

systemd: Add instructions for passing arguments to influxd
pull/2043/head^2
pierwill 2021-02-10 10:54:44 -08:00 committed by GitHub
parent ae75d08674
commit 3bb7133a39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -241,6 +241,22 @@ When installed as a service, InfluxDB stores data in the following locations:
- **Key-value data:** `/var/lib/influxdb/influxd.bolt`.
- **influx CLI configurations:** `~/.influxdbv2/configs` _(see [`influx config`](/influxdb/v2.0/reference/cli/influx/config/) for more information)_ .
To customize your InfluxDB configuration, use either
[command line flags (arguments)](#pass-arguments-to-systemd), environment variables, or an InfluxDB configuration file.
See InfluxDB [configuration options](/influxdb/v2.0/reference/config-options/) for more information.
#### Pass arguments to systemd
1. Add one or more lines like the following containing arguments for `influxd` to `/etc/default/influxdb2`:
```
ARG1="--http-bind-address :8087"
ARG2="<another argument here>"
```
2. Edit the `/lib/systemd/system/influxdb.service` file as follows:
```
ExecStart=/usr/bin/influxd $ARG1 $ARG2
```
### Networking ports
By default, InfluxDB uses TCP port `8086` for client-server communication over