一、安装influxdb
1. install influxdb
wget https://dl.influxdata.com/influxdb/releases/influxdb_1.8.3_amd64.deb
sudo dpkg -i influxdb_1.8.3_amd64.deb
2. start influxdb
设置开机启动
sudo service influxdb start
查看influxdb状态
sudo service influxdb status
进入influxdb
influx
二、Telegraf安装
1.安装Telegraf
sudo apt-get update && sudo apt-get install telegraf
sudo service telegraf start
如果安装失败,E: Unable to locate package telegraf
,请尝试以下方法
wget https://dl.influxdata.com/telegraf/releases/telegraf_1.16.2-1_amd64.deb
sudo dpkg -i telegraf_1.16.2-1_amd64.deb
2.修改配置文件
打开telegraf的配置文件