Skip to content

Installing and First Setup

Outcome: an influxd server running on a port you chose, an influx CLI that can prove it is alive, and the first user, organisation and bucket created without touching a browser. The transcripts are influxdb-lab/transcripts/t00-versions.txt and t01-health-and-setup.txt.

The official binaries

InfluxDB v2 ships as two tarballs on the project's own download server (dl.influxdata.com/influxdb/releases/): the server and the command-line client. The lab installed 2.9.1, the current v2 release. Watch the filenames — they are this chapter's small trap:

  • Server: influxdb2-2.9.1_linux_amd64.tar.gz (underscores; older v2 releases used dashes, and the dash name now returns a Not Found page — the lab's first download was exactly that page, saved under a plausible name).
  • Client: influxdb2-client-2.9.1-linux-amd64.tar.gz (dashes; the two archives were not renamed together).

Check what you fetched before you unpack it: file should call the server archive gzip compressed data (56 MB), not an HTML document. Unpacked, each is a single binary — influxd (142 MB) and influx (28 MB) — plus a licence and a README. Nothing is installed into the system; deleting the folder removes InfluxDB completely.

The version check:

./influxd version
./influx version
InfluxDB v2.9.1 (git: d4fa1941fd) build_date: 2026-05-11T20:49:03Z
Influx CLI dev (git: 54431c54aa7cd7fb486740908f60cdbe3831e7d3) build_date: 2026-10-29T16:03:24Z

Note the CLI's own honesty: the official 2.9.1 client tarball reports itself as a dev build. It is the genuine article from the project's server, and this guide uses it as-is — but when a tool tells you what it is, believe it, and remember it when chapter 14's troubleshooting comes around.

Starting the server

One command, with the two paths and the address stated out loud. The lab bound its server to loopback on its own port; on your machine the default port 8086 is the ordinary choice, and the paths shown are the server's own home:

INFLUXD_BOLT_PATH=$HOME/influxdb-data/influxd.bolt \
INFLUXD_ENGINE_PATH=$HOME/influxdb-data/engine \
./influxd --http-bind-address 127.0.0.1:18084

Left running, it logs its readiness. The proof, before any setup, is two endpoints that need no credentials:

curl -s http://127.0.0.1:18084/health
curl -s http://127.0.0.1:18084/ready
{"name":"influxdb", "message":"ready for queries and writes", "status":"pass", "checks":[], "version": "v2.9.1", "commit": "d4fa1941fd"}

/health says the server is up and what version it is; /ready adds how long it has been up. Anything that can make an HTTP request can babysit an InfluxDB with those two lines.

The setup: one command, four things

A fresh InfluxDB knows nothing — no users, no organisation, no buckets, and it will answer 401 to almost everything (the lab verified that too, later, in chapter 10). The CLI's setup creates the founding facts in one call, and it can be driven entirely from flags — no browser wizard needed:

export INFLUX_CONFIGS_PATH=$HOME/.influxdbv2/configs

influx setup --host http://127.0.0.1:18084 \
  --name lab \
  --username admin \
  --password 'a strong password you choose' \
  --org example-org \
  --bucket weather \
  --force
User    Organization    Bucket
admin   example-org weather

Four things now exist: the user (admin, for signing in to the web interface), the organisation (example-org), the first bucket (weather, with infinite retention), and — the quiet one — an operator token: an all-permissions credential for the admin user, stored in the CLI config the setup just wrote. That config is why later commands need no flags: influx bucket ls already knows where the server is, which organisation you mean, and which token to present:

ID          Name        Retention   Shard group duration    Organization ID     Schema Type
765950e5acb5b19d    _monitoring 168h0m0s    24h0m0s         bf6893ac12376786    implicit
49932f12c1a1b6f8    _tasks      72h0m0s 24h0m0s         bf6893ac12376786    implicit
4ed5a2165acd01fe    weather     infinite    168h0m0s            bf6893ac12376786    implicit

Two habits to start now. First: the config file holds a live credential — treat it like a key (permissions 600, never committed to a repository). Second: the password and the token are different tools. The password signs a human in to the web UI; the token is what programs — including every command in this guide — actually present. You will use the token daily and the password rarely, and chapter 7 is about making most of those daily tokens far weaker than this first one.