Change storage path

hello every one

i’m really new to influxdb and write code, i need to change the storage path can someone write the config file and where to put it to save data in F/InfluxData, i’m running influxb2 under Windows, i have been searching on internet for 2 days but i don’t understand how to do

thank you very much

The documentation outlines the directory structure of InfluxDB v2 and points to how to customize it. You have to provide custom paths, specifically for the for the following configuration options:

You can use either a config file, environment variables, or influxd command line flags to pass configuration options. The InfluxDB configuration options documentation provides more information.