Summer's Blog
😈酷炫主页
✨运维
🎉安装
👀踩坑
  • k8s
  • shell
  • python
  • redis
  • elasticsearch
  • mysql
  • ceph
  • spark
  • 关于
  • 思维
  • 命令
  • 友链
  • 分类
  • 标签
  • 归档
👨‍👩‍👦‍👦腾讯云社区
🗣GitHub

Summer———夏苏文

💨运维界的前行者
😈酷炫主页
✨运维
🎉安装
👀踩坑
  • k8s
  • shell
  • python
  • redis
  • elasticsearch
  • mysql
  • ceph
  • spark
  • 关于
  • 思维
  • 命令
  • 友链
  • 分类
  • 标签
  • 归档
👨‍👩‍👦‍👦腾讯云社区
🗣GitHub
  • K8s

  • shell

    • 自动重启应用脚本
    • 自动重启docker脚本
    • 安装java脚本
    • 安装mysql脚本
    • 安装elasticsearch脚本
    • 安装redis脚本
    • 清理docker日志脚本
    • 钉钉报警脚本
    • 彩色进度条脚本
    • 奇数行和偶数行合并
    • 备份mysql脚本
    • cpu硬盘报警脚本
    • 安装node-exporter脚本
      • 安装脚本
      • 验证
    • 批量ping探测网段ip
    • 一键安装VNC脚本
    • ssh免密登录脚本
    • 创建10个文件并写入内容
    • 模拟linux内存占用脚本
  • spark

  • Python

  • Redis

  • ceph

  • Elasticsearch

  • Mysql

  • 学习
  • shell
summer
2020-07-01

安装node-exporter脚本

# 安装脚本

#!/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 &
1
2
3
4
5
6
7
8
9
10
11

# 验证

[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]# 
1
2
3
4
5
6
7
8
9
10
11
12
  • 访问:http://IP:9100/metrics
#shell
上次更新: 1/14/2021, 6:11:51 PM
cpu硬盘报警脚本
批量ping探测网段ip

← cpu硬盘报警脚本 批量ping探测网段ip→

最近更新
01
ceph块设备使用iscsi
03-29
02
Citrix设置vm开机自启动
02-17
03
ntp与chrony时间同步
12-17
更多文章>
Theme by Vdoing | Copyright © 2019-2023 夏苏文 | MIT License

网站已在灾难中运行:

蜀ICP备2022029853号-1
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式