DEV Community

Lourdes Suello
Lourdes Suello

Posted on

Install influxDB in MacOS

Step 1: Install Homebrew
If you don't have Homebrew installed, you can install it by running the following command in your terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Step 2: Update Homebrew
Make sure Homebrew is up-to-date by running:

brew update

Step 3: Install InfluxDB
You can install InfluxDB using Homebrew:

brew install influxdb

Step 4: Start InfluxDB
Start the InfluxDB service using Homebrew services:

brew services start influxdb
Alternatively, you can start InfluxDB manually:

influxd

Step 5: Verify Installation
You can verify that InfluxDB is running by checking its status:

brew services list
You can also use the InfluxDB command line interface (CLI) to ensure it's working:

influx
This should open the InfluxDB CLI.

Step 6: Configure InfluxDB
InfluxDB configuration file is usually located at /usr/local/etc/influxdb.conf. You can edit this file to adjust InfluxDB settings as needed.

nano /usr/local/etc/influxdb.conf

Step 7: Access InfluxDB
You can access the InfluxDB UI by opening your browser and navigating to:

http://localhost:8086

Top comments (0)