Rate This Document
Findability
Accuracy
Completeness
Readability

Deploying the Go Environment

Deploy the Go environment on all nodes.

  1. Open the environment variable configuration file.
    1
    vi /etc/profile
    
  2. Press i to enter the insert mode and add the following content to the end of the file:
    1
    2
    export GO_HOME=/opt/prometheus/go
    export PATH=$GO_HOME/bin:$PATH
    
  3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Update the environment variable.
    1
    source /etc/profile
    
  5. View the version to check whether the installation is successful.
    1
    go version