Influxdb install: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=Add the influxdata Key= *sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - =Add the influxdata repository= *source /etc/lsb-release…“) |
|||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| + | =Install curl= | ||
| + | *apt install curl -y | ||
=Add the influxdata Key= | =Add the influxdata Key= | ||
*sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - | *sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - | ||
| + | |||
=Add the influxdata repository= | =Add the influxdata repository= | ||
| + | ==Ubuntu== | ||
*source /etc/lsb-release | *source /etc/lsb-release | ||
| + | ==Debian== | ||
| + | *export DISTRIB_ID=debian | ||
| + | *export DISTRIB_CODENAME=stretch | ||
| + | ==Add repo== | ||
*echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list | *echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list | ||
| + | |||
=Now update the repository and install the 'influxdb' package using the apt command below= | =Now update the repository and install the 'influxdb' package using the apt command below= | ||
*sudo apt update | *sudo apt update | ||
*sudo apt install influxdb -y | *sudo apt install influxdb -y | ||
| + | =Enable and start= | ||
| + | *sudo systemctl start influxdb | ||
| + | *sudo systemctl enable influxdb | ||
| + | =Check= | ||
| + | *netstat -lntp | grep influx | ||
| + | tcp 0 0 127.0.0.1:8088 0.0.0.0:* LISTEN 17766/influxd | ||
| + | tcp6 0 0 :::8086 :::* LISTEN 17766/influxd | ||
Aktuelle Version vom 10. Oktober 2019, 08:20 Uhr
Install curl
- apt install curl -y
Add the influxdata Key
- sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
Add the influxdata repository
Ubuntu
- source /etc/lsb-release
Debian
- export DISTRIB_ID=debian
- export DISTRIB_CODENAME=stretch
Add repo
- echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
Now update the repository and install the 'influxdb' package using the apt command below
- sudo apt update
- sudo apt install influxdb -y
Enable and start
- sudo systemctl start influxdb
- sudo systemctl enable influxdb
Check
- netstat -lntp | grep influx
tcp 0 0 127.0.0.1:8088 0.0.0.0:* LISTEN 17766/influxd tcp6 0 0 :::8086 :::* LISTEN 17766/influxd