首页
✨运维
🎉安装
👀踩坑
🤷‍♂️学习
😊关于
  • 分类
  • 标签
  • 归档
GitHub

Summer

运维界的小白
首页
✨运维
🎉安装
👀踩坑
🤷‍♂️学习
😊关于
  • 分类
  • 标签
  • 归档
GitHub
  • K8s

  • shell

    • 自动重启应用脚本
    • 自动重启docker脚本
    • 安装java脚本
    • 安装mysql脚本
    • 安装elasticsearch脚本
    • 安装redis脚本
    • 清理docker日志脚本
    • 钉钉报警脚本
    • 彩色进度条脚本
    • 奇数行和偶数行合并
    • 备份mysql脚本
    • cpu硬盘报警脚本
    • 安装node-exporter脚本
      • 安装脚本
      • 验证
  • Zabbix

  • Python

  • Redis

  • Elasticsearch

  • prometheus

  • Mysql

  • 学习
  • shell
summer
2020-12-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
cpu硬盘报警脚本
Python搭建http共享文件

← cpu硬盘报警脚本 Python搭建http共享文件→

最近更新
01
redis持久化
12-08
02
redis为什么这么快
12-08
03
redis的优缺点
12-08
更多文章>
Theme by Vdoing | Copyright © 2019-2020 Evan Xu | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式