Documentation

Install InfluxDB OSS v2

The InfluxDB v2 time series platform is purpose-built to collect, store, process and visualize metrics and events.

Download and install InfluxDB v2

Recommended:: Before you open and install packages and downloaded files, use SHA checksum verification and GPG signature verification to ensure the files are intact and authentic.

InfluxDB installation instructions for some OS versions include steps to verify downloaded files before you install them.

For more information about SHA and GPG verifications, see the following:

Choose the InfluxData key-pair for your OS version

Verify download integrity using SHA-256

Verify file integrity and authenticity using GPG

The following instructions include steps for downloading, verifying, and installing InfluxDB:

To install InfluxDB, do one of the following:

We recommend using Homebrew to install InfluxDB v2 on macOS.

InfluxDB and the influx CLI are separate packages

The InfluxDB server (influxd) and the influx CLI are packaged and versioned separately.

You’ll install the influx CLI in a later step.

Install using Homebrew

brew update
brew install influxdb
  • Copy
  • Fill window

Manually download and install for macOS

  1. In your browser or your terminal, download the InfluxDB package.

    InfluxDB v2 (macOS)

    # Download using cURL
    curl --location -O \
    "https://download.influxdata.com/influxdb/releases/influxdb2-2.7.11_darwin_amd64.tar.gz"
    
    • Copy
    • Fill window
  2. Recommended:: Verify the integrity of the download–for example, enter the following command in your terminal:

# Use 2 spaces to separate the checksum from the filename
echo "
224926fd77736a364cf28128f18927dda00385f0b6872a108477246a1252ae1b
influxdb2-2.7.11_darwin_amd64.tar.gz"
\
| shasum --algorithm 256 --quiet --check -
  • Copy
  • Fill window

Replace the following:

  • 224926fd77736a364cf28128f18927dda00385f0b6872a108477246a1252ae1b: the SHA checksum from the downloads page
  1. Unpackage the InfluxDB binary.

    Do one of the following:

    • In Finder, double-click the downloaded package file.
    • In your terminal (for example, Terminal or iTerm2), use tar to unpackage the file–for example, enter the following command to extract it into the current directory:
    # Unpackage contents to the current working directory
    tar zxvf ./influxdb2-2.7.11_darwin_amd64.tar.gz
    
    • Copy
    • Fill window
  2. Optional: Place the influxd binary in your $PATH–for example, copy the binary to /usr/local/bin:

    # (Optional) Copy the influxd binary to your $PATH
    sudo cp influxdb2-2.7.11/influxd /usr/local/bin/
    
    • Copy
    • Fill window

    With the influxd binary in your $PATH (/usr/local/bin), you can enter influxd in your terminal to start the server.

    If you choose not to move the influxd binary into your $PATH, enter the path to the binary to start the server–for example:

    ./influxdb2-2.7.11/influxd
    
    • Copy
    • Fill window

Both InfluxDB 1.x and 2.x have associated influxd and influx binaries. If InfluxDB 1.x binaries are already in your $PATH, run the v2 binaries in place or rename them before putting them in your $PATH. If you rename the binaries, all references to influxd and influx in this documentation refer to your renamed binaries.

Start InfluxDB

If it isn’t already running, follow the instructions to start InfluxDB on your system:

To start InfluxDB, run the influxd daemon:

influxd
  • Copy
  • Fill window

(macOS Catalina and newer) Authorize the influxd binary

macOS requires downloaded binaries to be signed by registered Apple developers. Currently, when you first attempt to run influxd, macOS will prevent it from running.

To manually authorize the influxd binary, follow the instructions for your macOS version to allow downloaded applications.

Run InfluxDB on macOS Ventura
  1. Follow the preceding instructions to attempt to start influxd.
  2. Open System Settings and click Privacy & Security.
  3. Under the Security heading, there is a message about “influxd” being blocked, click Allow Anyway.
  4. When prompted, enter your password to allow the setting.
  5. Close System Settings.
  6. Attempt to start influxd.
  7. A prompt appears with the message “macOS cannot verify the developer of “influxd”…”". Click Open.
Run InfluxDB on macOS Catalina
  1. Attempt to start influxd.
  2. Open System Preferences and click Security & Privacy.
  3. Under the General tab, there is a message about influxd being blocked. Click Open Anyway.

We are in the process of updating the build process to ensure released binaries are signed by InfluxData.

“too many open files” errors

After running influxd, you might see an error in the log output like the following:

too many open files
  • Copy
  • Fill window

To resolve this error, follow the recommended steps to increase file and process limits for your operating system version then restart influxd.

If InfluxDB was installed as a systemd service, systemd manages the influxd daemon and no further action is required. If the binary was manually downloaded and added to the system $PATH, start the influxd daemon with the following command:

influxd
  • Copy
  • Fill window

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
  • Copy
  • Fill window

Grant network access

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

Windows Defender Firewall has blocked some features of this app.

  1. Select Private networks, such as my home or work network.
  2. Click Allow access.

To use the Docker CLI to start an existing container, enter the following command:

docker start influxdb2
  • Copy
  • Fill window

Replace influxdb2 with the name of your container.

To start a new container, follow instructions to install and set up InfluxDB in a container.

To start InfluxDB using Kubernetes, follow instructions to install InfluxDB in a Kubernetes cluster.

If successful, you can view the InfluxDB UI at http://localhost:8086.

InfluxDB starts with default settings, including the following:

  • http-bind-address=:8086: Uses port 8086 (TCP) for InfluxDB UI and HTTP API client-server communication.
  • reporting-disabled=false: Sends InfluxDB telemetry information back to InfluxData.

To override default settings, specify configuration options when starting InfluxDB–for example:

Configure the port or address

Opt-out of telemetry reporting

For information about InfluxDB v2 default settings and how to override them, see InfluxDB configuration options.

With InfluxDB installed and initialized, get started writing and querying data.

Download, install, and configure the influx CLI

Recommended:: Install the influx CLI, which provides a simple way to interact with InfluxDB from a command line. For detailed installation and setup instructions, see Use the influx CLI.

InfluxDB and the influx CLI are separate packages

The InfluxDB server (influxd) and the influx CLI are packaged and versioned separately. Some install methods (for example, the InfluxDB Docker Hub image) include both.


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB 3 Core and Enterprise are now in Beta

InfluxDB 3 Core and Enterprise are now available for beta testing, available under MIT or Apache 2 license.

InfluxDB 3 Core is a high-speed, recent-data engine that collects and processes data in real-time, while persisting it to local disk or object storage. InfluxDB 3 Enterprise is a commercial product that builds on Core’s foundation, adding high availability, read replicas, enhanced security, and data compaction for faster queries. A free tier of InfluxDB 3 Enterprise will also be available for at-home, non-commercial use for hobbyists to get the full historical time series database set of capabilities.

For more information, check out: