Install InfluxDB in Linux Server and save the data of Databases created in to particular file system

I have installed the v2.1 release candidate (well, it’s not an install…just an unzip), but the beta unzip and run did not create a conf file.

Looking at , it talks about including start up flags. And I see an optional section about setting up the CLI by creating a config file. I assume that step is for more than just CLI setup? Is there more documentation about config file setup and the various options in 2.1?

Hi Frank, Thanks…

I am new to InfluxDb and exploring it.

When we download v2.1 we are not getting Influxdb.conf but when we go with v1.8 we are getting it by default. How or where can we get Influxdb.conf in v2.1.

Afaik you don’t need a config file if you just want to use the default settings:

Only non-default settings need to be defined in the configuration file.

If you need a config file with the default settings as a starting point, just run:

influxd print-config > config.yml

If I want to store the created Databases and data of it in to particular filesystem, I have do certain changes in Influxdb.conf as below


Where the metadata/raft database is stored

dir = “C:\Influxdb\meta”

The directory where the TSM storage engine stores TSM files.

dir = “C:\Influxdb\data”

The directory where the TSM storage engine stores WAL files.

wal-dir = “C:\Influxdb\wal”

What are we talking about now? InfluxDBv1 or InfluxDBv2?
InfluxDBv1 and InfluxDBv2 are very different, you can’t use config files from InfluxDBv1 for InfluxDBv2.

If you want to configure InfluxDBv1 please read the documentation for v1, if you want to configure InfluxDBv2 please read the documentation for v2.

Hey Frank,

Actually, I have downloaded latest version of InfluxDB (v2.1), but earlier I have once tried with InfluxDB (v1.8), so I was comparing with v1 to v2.

Here in v2 we won’t have Influxdb.conf correct? In v2 if we want to save the data to particular filesystem where can we configure?

Not quite correct. You can customize your InfluxDB configuration by using cli flags, setting environment variables, or defining configuration options in a configuration file.
Please read the documentation: