made moving binaries to the system path optional

pull/188/head
Scott Anderson 2019-04-24 16:20:55 -06:00
parent 51204031cb
commit cda6da33ca
1 changed files with 7 additions and 3 deletions

View File

@ -29,16 +29,20 @@ Download InfluxDB v2.0 alpha for macOS.
<a class="btn download" href="https://dl.influxdata.com/influxdb/releases/influxdb_2.0.0-alpha.8_darwin_amd64.tar.gz" download>InfluxDB v2.0 alpha (macOS)</a> <a class="btn download" href="https://dl.influxdata.com/influxdb/releases/influxdb_2.0.0-alpha.8_darwin_amd64.tar.gz" download>InfluxDB v2.0 alpha (macOS)</a>
### Place the executables in your $PATH ### Unpackage the InfluxDB binaries
Unpackage the downloaded archive and place the `influx` and `influxd` executables in your system `$PATH`. Unpackage the downloaded archive.
_**Note:** The following commands are examples. Adjust the file paths to your own needs._ _**Note:** The following commands are examples. Adjust the file paths to your own needs._
```sh ```sh
# Unpackage contents to the current working directory # Unpackage contents to the current working directory
gunzip -c ~/Downloads/influxdb_2.0.0-alpha.8_darwin_amd64.tar.gz | tar xopf - gunzip -c ~/Downloads/influxdb_2.0.0-alpha.8_darwin_amd64.tar.gz | tar xopf -
```
# Copy the influx and influxd binary to your $PATH Run the `influx` and `influxd` executables in place or copy them to your `$PATH`.
```sh
# (Optional) Copy the influx and influxd binary to your $PATH
sudo cp influxdb_2.0.0-alpha.8_darwin_amd64/{influx,influxd} /usr/local/bin/ sudo cp influxdb_2.0.0-alpha.8_darwin_amd64/{influx,influxd} /usr/local/bin/
``` ```