一、环境和安装包和部署
wget https://github.com/prometheus/prometheus/releases/download/v2.3.2/prometheus-2.3.2.linux-amd64.tar.gz
go1.8.3.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz
vim /etc/profile
添加这个 export PATH=$PATH:/usr/local/go/bin
然后让他生效
source /etc/profile go version
然后安装
tar -vxf prometheus-2.3.2.linux-amd64.tar.gz -C /usr/local/
为了以后进入目录方便,做了一个软连接:
cd /usr/local/prometheus-2.3.2.linux-amd64/
ln -sv /usr/local/prometheus-2.3.2.linux-amd64/ /usr/local/Prometheus
vim prometheus.yml
./prometheus #执行文件
|