Add the influxdata repository key
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
Create repository file for influxdb.
echo "deb https://repos.influxdata.com/ubuntu trusty stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
Update apt Metadata by running command below.
apt update
Now we are ready to install InfluxDB.
apt install influxdb
Start InfluxDB for the first time -
sudo service influxdb start
Let’s check whether InfluxDB already listen on its ports -
sudo netstat -naptu | grep LISTEN | grep influxd