add key
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
add sources
echo "deb https://repos.influxdata.com/ubuntu trusty stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
update
apt update
install
lwk@qwfys ~ $ apt install telegraf
start
sudo service telegraf start
来源:51CTO
作者:qwfys200
链接:https://blog.51cto.com/qwfys200/2074396