8. Installation of InfluxDB on FreeBSD 11.2 - tanalam2411/freebsd GitHub Wiki
Installation of InfluxDB on FreeBSD 11.2
1 . Search for InfluxDB package
root@freebsd:~/performance/influxdb # pkg search influxdb
influxdb-1.6.2 Open-source distributed time series database
py27-influxdb-5.0.0_1 Python Client for InfluxDB
py36-influxdb-5.0.0_1 Python Client for InfluxDB
2 . Install InfluxDB
root@freebsd:~/performance/influxdb # pkg install influxdb-1.6.2
3 . Start influxd service
root@freebsd:~/performance/influxdb # service influxd onestart
4 . To have InfluxDB start at system boot, add influxd_enable="YES" to /etc/rc.conf
root@freebsd:~/performance/influxdb # vi /etc/rc.conf
# add this at end of the file
influxd_enable="YES"
5 . Create admin user
root@freebsd:~/performance/influxdb # influx
Connected to http://localhost:8086 version 1.6.2
InfluxDB shell version: 1.6.2
> create user testuser with password 'testpassword'
> grant all privileges to testuser
6 . Create database by name testdb
> CREATE DATABASE testdb
> use testdb
Using database testdb
> exit
root@freebsd:~/performance/influxdb #