InfluxDB modify data storage path

1. Create a data storage directory

mkdir -p /home/data/influxdb

Note: The directory can be modified according to the actual situation.

2. Set directory access permissions

sudo chown influxdb.influxdb /home/data/influxdb

3. Modify the data engine directory

vi /etc/influxdb/config.toml

The file is modified as follows:

bolt-path = "/var/lib/influxdb/influxd.bolt"
#engine-path = "/var/lib/influxdb/engine"
engine-path = "/home/data/influxdb/engine"

4. Restart the InfluxDB service

systemctl restart influxdb

5. View InfluxDB status

systemctl status influxdb

6. Graphical interface configuration user name and password

Browser access, such as: http://localhost:8086/
insert image description here

Guess you like

Origin blog.csdn.net/aikudexiaohai/article/details/130078709