Compilation and Installation
- 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
- Configure the heap memory size of Node.js.
1export NODE_OPTIONS="--max_old_space_size=4096"
- Perform the compilation and installation.
1 2 3
cd influxdb ./env go build ./cmd/influx ./env go build ./cmd/influxd
- View the version.
1./influx version
Parent topic: Porting Guide