How do I edit the influx conf file through CLI on a VM?

How do I edit the influx conf file through CLI on a VM? I am on an ubuntu VM and would like to enable flux and would like to change contents of the conf file to enable flux.

I used vim to change the contents using command : sudo vi /etc/influxdb/influxdb.conf
but whenever I run influxd config again- it has flux set to false again. It only shows changed content when I run sudo vi /etc/influxdb/influxdb.conf
Thanks!

Hi @pearl1109 ,

what is the output of the influxd config command ?

something like this ?

influxd config
Merging with configuration at: /etc/influxdb/influxdb.conf

Hi @MarcV
Yes, that is the output I am getting.

Well , a vim should do the trick … have you uncommented the line in the configfile ?
That happend to me a few months ago :wink:

Ahh that seems to have worked, thank you so much! I had forgotten to uncommented and then restart.