Bobcares

Install influxdb in windows – How to do it

by | Oct 19, 2021

Wondering how to install influxdb in windows? We can help you.

Here at Bobcares, we get requests from our clients to handle similar issues as a part of our Server Management Services.

Today, in this article we will steps followed by our Support Engineers for the installation.

How to install influxdb in windows?

Basically, the InfluxDB 2.0 time series platform is purpose-built to collect, store, process and visualize metrics and events.

System Requirements:

  • Windows 10
  • 64-bit AMD architecture
  • Powershell or Windows Subsystem for Linux (WSL)

Download and install InfluxDB v2.0

Firstly, download InfluxDB v2.0 for Windows.

Then, expand the downloaded archive into C:\Program Files\InfluxData\ and rename it if desired.

Expand-Archive .\influxdb2-2.0.9-windows-amd64.zip -DestinationPath 'C:\Program Files\InfluxData\'
> mv 'C:\Program Files\InfluxData\influxdb2-2.0.9-windows-amd64' 'C:\Program Files\InfluxData\influxdb'

Networking ports

By default, InfluxDB uses TCP port 8086 for client-server communication over the InfluxDB HTTP API.

Start InfluxDB

In Powershell, navigate into C:\Program Files\InfluxData\influxdb and start InfluxDB by running the influxd daemon:

> cd -Path 'C:\Program Files\InfluxData\influxdb'
> ./influxd

See the influxd documentation for information about available flags and options.

Grant network access

When starting InfluxDB for the first time, Windows Defender will appear with the following message:

Windows Defender Firewall has blocked some features of this app.

1. Firstly, select Private networks, such as my home or work network.
2. Then, click Allow access.

InfluxDB “phone home”

By default, InfluxDB sends telemetry data back to InfluxData. The InfluxData telemetry page provides information about what data is collected and how it is used.

To opt-out of sending telemetry data back to InfluxData, include the –reporting-disabled flag when starting influxd.

./influxd --reporting-disabled

Set up InfluxDB

The initial setup process for InfluxDB walks through creating a default organization, user, bucket, and Operator API token.

The setup process is available in both the InfluxDB user interface (UI) and in the influx command line interface (CLI).

Operator token permissions

The Operator token created in the InfluxDB setup process has full read and write access to all organizations in the database.

To prevent accidental interactions across organizations, we recommend creating an All-Access token for each organization and using those to manage InfluxDB.

Set up InfluxDB through the UI

1. Firstly with InfluxDB running, visit localhost:8086.
2. Then, click Get Started

Set up your initial user

1. Firstly, enter a Username for your initial user.
2. Then, enter a Password and Confirm Password for your user.
3. Next, enter your initial Organization Name.
4. Then, enter your initial Bucket Name.
5. Next, click Continue.

InfluxDB is now initialized with a primary user, organization, and bucket. You are ready to write or collect data.

Set up and use the influx CLI

If you set up InfluxDB through the UI and want to use the influx CLI, we recommend setting up a configuration profile.

This lets you avoid having to pass your InfluxDB API token with each influx command.

Complete the following steps to set up a configuration profile that stores your credentials.

1. In a terminal, run the following command:

# Set up a configuration profile
influx config create -n default \
-u http://localhost:8086 \
-o example-org \
-t mySuP3rS3cr3tT0keN \
-a

2. Learn influx CLI commands. To see all available influx commands, type influx -h or check out influx – InfluxDB command line interface

[Need assistance with windows queries? We can help you]

Conclusion

Today, we saw how our Support Techs Install influxdb in windows.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.