准备go语言安装包,普罗米修斯安装包,解压
tar zxf go1.8.3.linux-amd64.tar.gz -C /usr/local/
tar zxf prometheus-2.3.2.linux-amd64.tar.gz -C /usr/local/
编辑环境变量,添加go路径
vim .bash_profile
export PATH=$PATH:/usr/local/go/bin/
source .bash_profile #更新
进入prometheus解压目录,创建软连接
cd /usr/local/prometheus-2.3.2.linux-amd64/
ln -s /usr/local/prometheus-2.3.2.linux-amd64 /usr/local/Prometheus
查看版本号确保正确
go version