InfluxDB: Unterschied zwischen den Versionen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „ == Installation == curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -<br> echo "deb https://repos.influxdata.com/debian stretch stab…“)
 
Zeile 2: Zeile 2:
 
== Installation ==
 
== Installation ==
  
   curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -<br>
+
   curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
   echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list<br>
+
   echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
   sudo apt update<br>
+
   sudo apt update
   sudo apt install influxdb telegraf<br>
+
   sudo apt install influxdb telegraf
   sudo systemctl enable influxdb<br>
+
   sudo systemctl enable influxdb
 
   sudo systemctl start influxdb
 
   sudo systemctl start influxdb
 +
 +
== Konfigurieren ==
 +
 +
  influx
 +
 
 +
  > CREATE DATABASE openhab_db
 +
  > CREATE USER admin WITH PASSWORD '<passwort>' WITH ALL PRIVILEGES
 +
  > CREATE USER openhab WITH PASSWORD '<passwort>'
 +
  > CREATE USER grafana WITH PASSWORD '<passwort>'
 +
  > GRANT ALL ON openhab_db TO openhab
 +
  > GRANT READ ON openhab_db TO grafana
 +
  > exit

Version vom 19. Juli 2018, 22:32 Uhr

Installation

 curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
 echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
 sudo apt update
 sudo apt install influxdb telegraf
 sudo systemctl enable influxdb
 sudo systemctl start influxdb

Konfigurieren

 influx
 
 > CREATE DATABASE openhab_db
 > CREATE USER admin WITH PASSWORD '<passwort>' WITH ALL PRIVILEGES
 > CREATE USER openhab WITH PASSWORD '<passwort>'
 > CREATE USER grafana WITH PASSWORD '<passwort>'
 > GRANT ALL ON openhab_db TO openhab
 > GRANT READ ON openhab_db TO grafana
 > exit