<?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>server management Archives - Hostnats</title>
	<atom:link href="https://www.hostnats.com/blog/category/server-management/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.hostnats.com/blog/category/server-management/</link>
	<description>The Perfect Hosting Partner</description>
	<lastBuildDate>Tue, 31 Mar 2026 10:03:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>

<image>
	<url>https://www.hostnats.com/blog/wp-content/uploads/2020/07/logo.png</url>
	<title>server management Archives - Hostnats</title>
	<link>https://www.hostnats.com/blog/category/server-management/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Install InfluxDB On Ubuntu 20.04?</title>
		<link>https://www.hostnats.com/blog/how-to-install-influxdb-on-ubuntu-20-04/</link>
					<comments>https://www.hostnats.com/blog/how-to-install-influxdb-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[Gopu Kumar]]></dc:creator>
		<pubDate>Mon, 15 Nov 2021 16:55:54 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[how to install influxdb on ubuntu]]></category>
		<category><![CDATA[how to install influxdb on ubuntu 20.04]]></category>
		<guid isPermaLink="false">https://www.helptoinstall.com/?p=3938</guid>

					<description><![CDATA[<p>Let me make you clear about InfluxDB first. It provides the ease of a powerful API for making apps without any complicated coding forms. It is generally with less code, effortless and fewer configurations as well. HelptoInstall&#8217;s Expert Admin Panel is recommended to have an Ubuntu Server and a Sudo user in order to begin. [&#8230;]</p>
<p>The post <a href="https://www.hostnats.com/blog/how-to-install-influxdb-on-ubuntu-20-04/">How To Install InfluxDB On Ubuntu 20.04?</a> appeared first on <a href="https://www.hostnats.com/blog">Hostnats</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Let me make you clear about InfluxDB first. It provides the ease of a powerful API for making apps without any complicated coding forms. It is generally with less code, effortless and fewer configurations as well.</p>



<p class="wp-block-paragraph"><strong><a href="https://www.helptoinstall.com/">HelptoInstall&#8217;s</a> Expert Admin Panel</strong> is recommended to have an Ubuntu Server and a Sudo user in order to begin.</p>



<h2 class="wp-block-heading">Download And Install The InfluxDB Package</h2>



<p class="wp-block-paragraph">First of all, we have to install the influx DB server by pulling the installation from the official repository.</p>



<p class="wp-block-paragraph">We will SSH to the server. After that, we have to download and add the influx DB GPG key into the server we run.</p>



<pre class="wp-block-preformatted"><strong>$ sudo curl -sL <a href="https://repos.influxdata.com/influxdb.key">https://repos.influxdata.com/influxdb.key | sudo apt-key add -</a>
</strong>
The command will be resulted in an OK message.
Then, we will add a new influxdb.list repo file to the available packages list.

<strong>$ sudo echo "deb https://repos.influxdata.com/ubuntu bionic stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
</strong>
After that, the next thing we have to do is the updation of package information index:

<strong>$ sudo apt update</strong>

Then, we have to install the package information index:

<strong>$ sudo system ctl start influxdb</strong>

The package will be active and loaded on the server.

<strong>Influxdb.service- influx DB is an open-source, distributed, time ser loaded : C/lib/systemd/system/influxdb-service;enabled;vendc
Active:active (running) since Fri 2021-09-03
06:08:59 UTC;2min3s
Docs:https://docs.influxdata.com/influxdb/</strong>









</pre>



<h2 class="wp-block-heading">Configuration Of The InfluxDB Server</h2>



<p class="wp-block-paragraph">After all, we have to configure a new admin user along with root privileges for the influx DB server.</p>



<p class="wp-block-paragraph">For this, we have to execute the influx command.</p>



<p class="wp-block-paragraph"><strong>$ influx</strong></p>



<p class="wp-block-paragraph">This help you to see the current connection, port, and version number.</p>



<p class="wp-block-paragraph">Connected to http://localhost:8086 version 1.8.9 influx DB shell version: 1.8.9</p>



<p class="wp-block-paragraph">&gt;</p>



<p class="wp-block-paragraph">(It means that the influx DB is ready to accept commands)</p>



<p class="wp-block-paragraph">For creating an admin account, we run:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>CREATE USER admin WITH PASSWORD &#8216;EXAMPLE_PASSWORD WITH ALL PRIVIL</p><p>Additionally, you should make sure to replace EXAMPLE_PASSWORD along with a strong value.</p><p>Then, we exit from the influxDB shell: &gt; quit</p><p>Fina;lly, we will have to get the authentication enabled. We have to modify the main influxDB configuration file for doing it.</p><p>Use nano to open the <strong>/etc/influxdb/influxdb.conf file</strong>.</p><p><strong>$sudo nano /etc/influxdb/influxdb.conf</strong></p><p>Then we locate the line #auth-enabled = false under the (http) section</p><p>&#8230;</p><p>(http)</p><p>&#8230;</p><p>#determines whether user authentication is enabled over HTTP/HTTPS.</p><p>#auth-enabled=false</p><p>&#8230;</p><p>Now, we can change the value of enabled auth to true and remove the leading symbol from the line to uncomment the setting</p><p>&#8230;</p><p>(http)</p><p>&#8230;</p><p>#determines whether user authentication is enabled over HTTP/HTTPS.</p><p>auth-enabled = true</p><p>&#8230;</p><p>Finally, we save and close the file.</p><p>Then, the next step is to load the new security setting, we have to restart the influxdb service.</p><p>$sudo system &#8216;t&#8217; restart influxdb. Then, we can go and log into the influxDB server with the username of admin and password that we set: $influx &#8211; username &#8216;admin&#8217; &#8211; password &#8220;EXAMPLE PASSWORD&#8221;</p><p>For verifying the commands and to make sure everything is working, we run</p><p><strong>&gt; SHOW DATABASES</strong></p><p>After that, we will see a default, internal databvase in the list like :</p><p><strong>name : databases</strong></p><p><strong>name</strong></p><p><strong>&#8230;&#8230;&#8230;</strong></p><p><strong>-internal</strong></p><p></p></blockquote>



<h2 class="wp-block-heading">To Create An InfluDB Database</h2>



<p class="wp-block-paragraph">Moving on, we will set up a sample database a strong matrix.</p>



<p class="wp-block-paragraph">We create the water-DB database on the influx shell. To do that, we have to run:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>CREATE DATABASE water_db.</p><p>and we should click enter.</p><p>That will show the symbol &#8220;&gt;&#8221;, that means the command execution has no errors.</p><p>Then, we can verify whether we have successfully set up the ater_db database or not.</p><p>&gt;SHOW DATBASES</p><p>This will give us two databases list </p><p><strong>name: database</strong></p><p><strong>name</strong></p><p><strong>&#8212;&#8212;-</strong></p><p><strong>_internal</strong></p><p><strong>water_db</strong></p></blockquote>



<p class="wp-block-paragraph">The database is all set to accept new data.</p>



<h2 class="wp-block-heading">Write influxDB Data</h2>



<p class="wp-block-paragraph">Execute additional InfluxQL statements against the new water-DB database.</p>



<p class="wp-block-paragraph">Switch to the new water_db database. For the web have to run:</p>



<p class="wp-block-paragraph">&gt;USE water_db</p>



<p class="wp-block-paragraph">We will get similar output like on the following line</p>



<p class="wp-block-paragraph">Using database water_db</p>



<p class="wp-block-paragraph">Now, this database can accept writes and queries.</p>



<h2 class="wp-block-heading">InfluxDB HTTP API</h2>



<p class="wp-block-paragraph">We all know that InfluxDB is built for developers. It has a very useful API querying metrics with common tools that are allowed without writing additional codes.</p>



<p class="wp-block-paragraph">For that we run</p>



<p class="wp-block-paragraph">S Curl &#8211; G &#8216;https : localhost : 8086 / query?</p>



<p class="wp-block-paragraph">Pretty=true-uadmin : EXAMPLE</p>



<p class="wp-block-paragraph">Ensure to replace EXAMPLE_PASSWORD with the correct password value.</p>



<p class="wp-block-paragraph">The outlook will be similar as follows</p>



<p class="wp-block-paragraph">The output will look similar to this:</p>



<pre class="wp-block-preformatted">{
"results": [
{
"statement_id": 0,
"series": [
{
"name": "water_level",
"columns": [
"time",
"tank_location",
"value_in_ft"
],
"values": [
[
"2021-09-03T09:07:04.738274574Z",
"MIAMI",
10
],
[
"2021-09-03T09:07:13.290269685Z",
"SEATTLE",
5.4
],
[
"2021-09-03T09:07:29.030041003Z",
"DALLAS",
3.2
],
[
"2021-09-03T09:08:16.340252215Z",
"LOS-ANGELES",
1.3
]
]
}
]
}
]
}</pre>



<p class="wp-block-paragraph">Eventually, the Influx DB Server and API will work.</p>



<p class="wp-block-paragraph">Consider <a href="https://www.helptoinstall.com/">HelptoInstall</a> if you face any issues.</p>
<p>The post <a href="https://www.hostnats.com/blog/how-to-install-influxdb-on-ubuntu-20-04/">How To Install InfluxDB On Ubuntu 20.04?</a> appeared first on <a href="https://www.hostnats.com/blog">Hostnats</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hostnats.com/blog/how-to-install-influxdb-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
