Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

  1. Download the InfluxDB source code.
    1
    2
    3
    4
    cd /opt
    mkdir db
    cd db 
    git clone -b v2.0.3 https://github.com/influxdata/influxdb.git
    
  2. Configure the heap memory size of Node.js.
    1
    export NODE_OPTIONS="--max_old_space_size=4096"
    
  3. Perform the compilation and installation.
    1
    2
    3
    cd influxdb
    ./env go build ./cmd/influx
    ./env go build ./cmd/influxd
    
  4. View the version.
    1
    ./influx version