mymon编译部署
yum install go -y
cat >> /etc/profile <<EOF
export GOPATH=/usr/src/
EOF
source /etc/profile
mkdir -p $GOPATH/src/github.com/open-falcon
cd $GOPATH/src/github.com/open-falcon
wget -q https://bash.org.cn/source/open-falcon/mymon-master.zip ##或者https://codeload.github.com/open-falcon/mymon/zip/master
unzip mymon-master.zip
mv mymon-master mymon
cd mymon
go get ./... && go build -o mymon
echo '* * * * * root cd /usr/src/src/github.com/open-falcon/mymon && ./mymon -c etc/myMon.cfg' > /etc/cron.d/mymon
相关文章
暂无评论...