#********** INSTALL **********
#***************************************************
#Default repo contains old InfuxDB!!
#Upgrade your system
sudo apt-get update && sudo apt-get -y upgrade
#Download key
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
#Add repository
echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
#Install
sudo apt-get update
#Install
sudo apt-get update
sudo apt-get install influxdb
sudo apt-get install chronograf
#Manually edit config file
sudo nano /etc/influxdb/influxdb.conf
[meta]
dir = "/usbdisc/influxdb/meta"
[http]
enabled = true
#Manually edit config file
sudo nano /etc/influxdb/influxdb.conf
[meta]
dir = "/usbdisc/influxdb/meta"
[data]
dir = "/usbdisc/influxdb/data"
[http]
enabled = true
#Start service
sudo service influxd start
#Create admin user
sudo influx
>CREATE USER <username> WITH PASSWORD '<password>' WITH ALL PRIVILEGES
>exit
#Restart service
sudo service influxd restart
#***************************************************
#********** Sample Reverse Proxy **********
#***************************************************
#***************************************************
#********** Misc **********
#***************************************************
#Start
sudo service influxdb start
#Service port
http://[SERVER_IP]:8086
#Config file
/etc/influxdb/influxdb.conf
#Uninstall
sudo apt-get remove --purge influxdb#http://www.automatiserar.se/guide-raspberry-pi/#InstallationInflux
#https://www.influxdata.com/blog/running-the-tick-stack-on-a-raspberry-pi/
sudo service influxd start
#Create admin user
sudo influx
>CREATE USER <username> WITH PASSWORD '<password>' WITH ALL PRIVILEGES
>exit
#Restart service
sudo service influxd restart
#***************************************************
#********** Sample Reverse Proxy **********
#***************************************************
<VirtualHost *:443>
ServerName influxdb.mydomain.com
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://192.168.1.92:8086/
ProxyPassReverse / http://192.168.1.92:8086/
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/influxdb.mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/influxdb.mydomain.com/privkey.pem
</VirtualHost>
#********** Misc **********
#***************************************************
#Start
sudo service influxdb start
#Service port
http://[SERVER_IP]:8086
#Config file
/etc/influxdb/influxdb.conf
#Uninstall
sudo apt-get remove --purge influxdb#http://www.automatiserar.se/guide-raspberry-pi/#InstallationInflux
#https://www.influxdata.com/blog/running-the-tick-stack-on-a-raspberry-pi/
Inga kommentarer:
Skicka en kommentar