<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>InfluxDB Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/influxdb/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 07 Jan 2019 20:19:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install InfluxDB on Ubuntu 18.04 and Debian 9?</title>
		<link>https://www.osradar.com/install-influxdb-ubuntu-18-04-debian-9/</link>
					<comments>https://www.osradar.com/install-influxdb-ubuntu-18-04-debian-9/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 08 Jan 2019 03:33:42 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dataases]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[InfluxDB]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[metric monitoring]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9017</guid>

					<description><![CDATA[<p>Normally web servers are very popular among sysadmin. However using the network a lot, you can discover through certain tools, how it improves performance and get statistics about it. The above becomes even more relevant when several systems are required, analyzed and monitored. With this in mind, I will teach you how to install InfluxDB [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-influxdb-ubuntu-18-04-debian-9/">How to install InfluxDB on Ubuntu 18.04 and Debian 9?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Normally web servers are very popular among sysadmin. However using the network a lot, you can discover through certain tools, how it improves performance and get statistics about it. The above becomes even more relevant when several systems are required, analyzed and monitored. With this in mind, I will teach you how to install InfluxDB as a first step in measuring your systems.</p>
<p><a href="https://www.influxdata.com/products/" rel="noopener">InfluxDB</a> is a time series <a href="https://www.osradar.com/tag/database/" rel="noopener">database</a> manager, with a primary focus on high availability and the ability to support multiple simultaneous queries. Which makes it ideal for working with graphs, metrics and performance statistics.</p>
<p>Many companies use InfluxDB to store their statistical and event data about what happens with their systems. The main advantage of InfluxDB is that it is open source, so you can examine its source code, in addition, has no external dependencies and thus facilitate its installation.</p>
<p>So, let&#8217;s start to install InfluxDB.</p>
<h2>0. What you need</h2>
<p>The installation is not really complicated, however, it is good to keep in mind that it requires a certain level of knowledge about the Linux <a href="https://www.osradar.com/tag/terminal/" rel="noopener">terminal</a>.</p>
<p>On the other hand, it is necessary that the user can execute commands as the root user. Or, to be the root user.</p>
<h2>1. Install InfluxDB on Ubuntu 18.04 and Debian 9</h2>
<p>First, upgrade the system. Open a terminal and run:</p>
<pre class="">:~$ sudo apt update &amp;&amp; sudo apt upgrade</pre>
<figure id="attachment_9019" aria-describedby="caption-attachment-9019" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9019" src="https://www.osradar.com/wp-content/uploads/2019/01/1-6.png" alt="1.- Upgrade the system" width="1366" height="529" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-6.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/1-6-300x116.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-6-768x297.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-6-1024x397.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/1-6-1068x414.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/1-6-1085x420.png 1085w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9019" class="wp-caption-text">1.- Upgrade the system</figcaption></figure>
<p>It is advisable to do this, to ensure that your system has the latest security patches. These patches will increase the robustness of the system.</p>
<p>An easy way to install InfluxDB on <a href="https://www.osradar.com/tag/ubuntu/" rel="noopener">Ubuntu</a> 18.04 and <a href="https://www.osradar.com/tag/debian/" rel="noopener">Debian</a> 9 is to add its stable repository. In fact it is the way recommended by its developers.</p>
<p>So, create a new repository file for InfluxDB.</p>
<pre class="">:~$ sudo nano /etc/apt/sources.list.d/influxdb.list</pre>
<p>And add this line for Ubuntu:</p>
<pre class="">deb https://repos.influxdata.com/ubuntu bionic stable</pre>
<p>And this line, if you use Debian 9.</p>
<pre class="">deb https://repos.influxdata.com/ubuntu stretch stable</pre>
<figure id="attachment_9020" aria-describedby="caption-attachment-9020" style="width: 903px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9020" src="https://www.osradar.com/wp-content/uploads/2019/01/2-5.png" alt="2.- Creating the repository file" width="903" height="167" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-5.png 903w, https://www.osradar.com/wp-content/uploads/2019/01/2-5-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-5-768x142.png 768w" sizes="(max-width: 903px) 100vw, 903px" /><figcaption id="caption-attachment-9020" class="wp-caption-text">2.- Creating the repository file</figcaption></figure>
<p>Next, import the GPG key for the repository. Important to make sure the software is signed.</p>
<pre class="">:~$ sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -</pre>
<figure id="attachment_9021" aria-describedby="caption-attachment-9021" style="width: 881px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9021" src="https://www.osradar.com/wp-content/uploads/2019/01/3-5.png" alt="3.- Downloading the GPG key" width="881" height="147" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-5.png 881w, https://www.osradar.com/wp-content/uploads/2019/01/3-5-300x50.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-5-768x128.png 768w" sizes="(max-width: 881px) 100vw, 881px" /><figcaption id="caption-attachment-9021" class="wp-caption-text">3.- Downloading the GPG key</figcaption></figure>
<p>Then, update APT cache and install InfluxDB.</p>
<pre class="">:~$ sudo apt update &amp;&amp; sudo apt install influxdb</pre>
<figure id="attachment_9022" aria-describedby="caption-attachment-9022" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9022" src="https://www.osradar.com/wp-content/uploads/2019/01/4-6.png" alt="4.- Install InfluxDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-6.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/4-6-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-6-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/4-6-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/4-6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/4-6-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9022" class="wp-caption-text">4.- Install InfluxDB</figcaption></figure>
<p>Now, enable and start the InfluxDB service.</p>
<pre class="">:~$ sudo systemctl enable influxdb
:~$ sudo systemctl start influxdb</pre>
<p>Check the service.</p>
<pre class="">:~$ sudo systemctl status influxdb</pre>
<figure id="attachment_9023" aria-describedby="caption-attachment-9023" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9023" src="https://www.osradar.com/wp-content/uploads/2019/01/5-6.png" alt="5.- Start the InfluxDB service" width="1365" height="466" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-6.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/5-6-300x102.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-6-768x262.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-6-1024x350.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/5-6-1068x365.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/5-6-1230x420.png 1230w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-9023" class="wp-caption-text">5.- Start the InfluxDB service</figcaption></figure>
<h2>2. Set up the firewall</h2>
<p>Normally if you use a server you should have a firewall installed. For this example, I will assume that <code>ufw</code> is installed. If you don&#8217;t have it, you can do it with this command:</p>
<pre class="">:~$ sudo apt install ufw</pre>
<p>Next, enable it.</p>
<pre class="">:~$ sudo systemctl enable ufw
:~$ sudo systemctl start ufw</pre>
<figure id="attachment_9024" aria-describedby="caption-attachment-9024" style="width: 941px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9024" src="https://www.osradar.com/wp-content/uploads/2019/01/6-5.png" alt="6.- Enabling ufw" width="941" height="153" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-5.png 941w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-768x125.png 768w" sizes="(max-width: 941px) 100vw, 941px" /><figcaption id="caption-attachment-9024" class="wp-caption-text">6.- Enabling ufw</figcaption></figure>
<p>By default, InfluxDB uses TCP ports 8086 and 8088. The 8086 uses it for communication and management while the 8088 is used for backup and data restoration.</p>
<p>So, open these ports on ufw.</p>
<pre class="">:~$ sudo ufw allow 8086/tcp
:~$ sudo ufw allow 8088/tcp</pre>
<figure id="attachment_9025" aria-describedby="caption-attachment-9025" style="width: 842px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9025" src="https://www.osradar.com/wp-content/uploads/2019/01/7-5.png" alt="7.- Opening the ports" width="842" height="202" srcset="https://www.osradar.com/wp-content/uploads/2019/01/7-5.png 842w, https://www.osradar.com/wp-content/uploads/2019/01/7-5-300x72.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/7-5-768x184.png 768w" sizes="(max-width: 842px) 100vw, 842px" /><figcaption id="caption-attachment-9025" class="wp-caption-text">7.- Opening the ports</figcaption></figure>
<h2>3. Test the installation</h2>
<p>The best way to test the InfluxDB installation is to create a database. This way we will know if everything has gone well.</p>
<p>So, run in a terminal:</p>
<pre class="">:~$ curl -XPOST "http://localhost:8086/query" --data-urlencode "q=CREATE DATABASE mydb"</pre>
<figure id="attachment_9026" aria-describedby="caption-attachment-9026" style="width: 978px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9026" src="https://www.osradar.com/wp-content/uploads/2019/01/8-4.png" alt="8.- Creating a new database" width="978" height="136" srcset="https://www.osradar.com/wp-content/uploads/2019/01/8-4.png 978w, https://www.osradar.com/wp-content/uploads/2019/01/8-4-300x42.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/8-4-768x107.png 768w" sizes="(max-width: 978px) 100vw, 978px" /><figcaption id="caption-attachment-9026" class="wp-caption-text">8.- Creating a new database</figcaption></figure>
<p>As you can see, everything went OK.</p>
<p>So, share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-influxdb-ubuntu-18-04-debian-9/">How to install InfluxDB on Ubuntu 18.04 and Debian 9?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-influxdb-ubuntu-18-04-debian-9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
