前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >安装node-exporter脚本

安装node-exporter脚本

作者头像
summerking
发布2022-09-19 11:37:38
6140
发布2022-09-19 11:37:38
举报
文章被收录于专栏:summerking的专栏

# 安装脚本

代码语言:javascript
复制
#!/bin/bash
# 请将安装包node_exporter-1.0.1.linux-amd64.tar.gz放在和我同级的目录下
echo ">>>>>>>>>>>>>开始安装node_exporter<<<<<<<<<<<<<"
mkdir -p /opt/exporter
cd $(dirname $0)
tar -zxvf node_exporter-1.0.1.linux-amd64.tar.gz  -C /opt/exporter/
cd /opt/exporter
mv node_exporter-1.0.1.linux-amd64 node_exporter
chmod 777 node_exporter
echo ">>>>>>>>>>>>>安装完毕开始启动<<<<<<<<<<<<<"
nohup /opt/exporter/node_exporter/node_exporter &

# 验证

代码语言:javascript
复制
[root@smartops50 soft]# ./node-install.sh 
>>>>>>>>>>>>>开始安装node_exporter<<<<<<<<<<<<<
node_exporter-1.0.1.linux-amd64/
node_exporter-1.0.1.linux-amd64/NOTICE
node_exporter-1.0.1.linux-amd64/node_exporter
node_exporter-1.0.1.linux-amd64/LICENSE
>>>>>>>>>>>>>安装完毕开始启动<<<<<<<<<<<<<
[root@smartops50 soft]# nohup: appending output to ‘nohup.out’

[root@smartops50 soft]# ss -anplt | grep 9100
LISTEN     0      10240       :::9100                    :::*                   users:(("node_exporter",pid=25161,fd=3))
[root@smartops50 soft]# 

  • 访问:http://IP:9100/metrics
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-07-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • # 安装脚本
  • # 验证
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档