当前位置: 首页 > news >正文

做个网站得投入多少营销推广网站推广方案

做个网站得投入多少,营销推广网站推广方案,做网页要钱吗,网站型与商城型有什么区别吗服务器部署 Prometheus 与图形化界面 Grafana 一、准备工作1.1 系统背景 二、部署 Prometheus2.1 下载并解压 Prometheus2.2 配置 Prometheus2.3 启动 Prometheus2.4 检查服务 三、部署 Node Exporter3.1 下载并解压 Node Exporter3.2 启动node_exporter3.2 检查服务 四、部署…

服务器部署 Prometheus 与图形化界面 Grafana

    • 一、准备工作
      • 1.1 系统背景
    • 二、部署 Prometheus
      • 2.1 下载并解压 Prometheus
      • 2.2 配置 Prometheus
      • 2.3 启动 Prometheus
      • 2.4 检查服务
    • 三、部署 Node Exporter
      • 3.1 下载并解压 Node Exporter
      • 3.2 启动node_exporter
      • 3.2 检查服务
    • 四、部署 Grafana(图形化界面)
      • 4.1 添加仓库并安装
      • 4.2 启动并访问
    • 五、配置 Grafana 数据源与仪表盘
      • 5.1 添加数据源
      • 5.2 导入仪表盘
      • 5.3 监控页面UI
    • ✅ 总结

记录在 CentOS 8 上部署 Prometheus 监控系统,并配置图形化界面 Grafana


一、准备工作

1.1 系统背景

  • 操作系统:CentOS 8
  • 用户权限:root 或具有 sudo 权限
  • 服务器开放9090(Prometheus Server 的默认端口)、9100(Node Exporter 的默认端口)、3000( Grafana 的默认端口)

二、部署 Prometheus

使用Github下载方式,防止命令下载卡住

2.1 下载并解压 Prometheus

进入Prometheus Gihub官网:https://github.com/prometheus/prometheus/releases

在这里插入图片描述
点击Show all 38 assets 查看更多版本,选择prometheus-3.4.1.linux-amd64.tar.gz点击即可下载

在这里插入图片描述
使用Termius或者Filezilla 等传输工具将下载好的压缩包上传到服务器opt目录

# 进入opt目录
cd /opt # 解压文件tar -xzf prometheus-3.4.1.linux-amd64.tar.gz
# 进入prometheus目录
cd prometheus

2.2 配置 Prometheus

添加node_exporter三行配置,后面会安装node_exporter
编辑配置文件 prometheus.yml

# /opt/prometheus/prometheus.ymlglobal:scrape_interval: 15sscrape_configs:- job_name: 'prometheus'static_configs:- targets: ['localhost:9090']- job_name: 'node_exporter' # Node Exporter 机器指标static_configs:- targets: ['localhost:9100'] # Node Exporter 默认端口

2.3 启动 Prometheus

./prometheus --config.file=prometheus.yml &

或使用 screen 启动后台任务

screen -S prometheus
./prometheus --config.file=prometheus.yml

2.4 检查服务

netstat -tulnp | grep 9090

在这里插入图片描述

打开浏览器访问:

http://服务器:9090

在这里插入图片描述
在这里插入图片描述


三、部署 Node Exporter

3.1 下载并解压 Node Exporter

进入node_exporter官网:https://github.com/prometheus/node_exporter/releases
选择node_exporter-1.9.1.linux-amd64.tar.gz点击即可下载

在这里插入图片描述
使用Termius或者Filezilla 等传输工具将下载好的压缩包上传到服务器opt目录

cd /opt
# 解压tar -xzf node_exporter-1.9.1.linux-amd64.tar.gz

3.2 启动node_exporter

cd /opt# 进入解压后目录
cd node_exporter-1.9.1.linux-amd64# 启动服务
./node_exporter &

监听端口为 9100

3.2 检查服务

netstat -tulnp | grep 9100

在这里插入图片描述

打开浏览器访问:

http://服务器ip:9100/metrics

四、部署 Grafana(图形化界面)

4.1 添加仓库并安装

# 添加仓库
sudo tee /etc/yum.repos.d/grafana.repo > /dev/null <<EOF
[grafana]
name=Grafana OSS
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
EOF# 安装
sudo dnf install grafana -y

4.2 启动并访问

# 启动并设置开机自启
sudo systemctl start grafana-server
sudo systemctl enable grafana-server

查看 Grafana 状态

sudo systemctl status grafana-server

在这里插入图片描述

打开浏览器访问:

http://服务器ip:3000

默认账户密码:admin / admin(首次登录强制修改密码)
在这里插入图片描述


五、配置 Grafana 数据源与仪表盘

5.1 添加数据源

选择⚙️ 添加数据源
在这里插入图片描述

url地址输入http://localhost:9090

5.2 导入仪表盘

  1. 左侧菜单 → “+” → “Import”
  2. 输入仪表盘 ID,例如:
    • 11074(Node Exporter Quickstart)
    • 1860(Node Exporter Full,老版本,需注意兼容问题)
  3. 点击 “Load” → 选择数据源 → “Import”

如果报错如 e.replace is not a function,说明仪表盘模板不兼容,可使用新版或手动修复 JSON 文件。
在这里插入图片描述


5.3 监控页面UI

在这里插入图片描述
在这里插入图片描述

✅ 总结

部署 Prometheus + Grafana 的组合,可以实现对 Linux 系统的全面监控和可视化展示。通过 Node Exporter 提供详细的指标数据,再借助 Grafana 直观呈现,另外也可Spring BootMysqlRedis等都可以被监控,按需配置即可,希望本片文章对你有所帮助,掰掰~👋


文章转载自:
http://compost.c7496.cn
http://embathe.c7496.cn
http://tragic.c7496.cn
http://unfathered.c7496.cn
http://detractor.c7496.cn
http://philomela.c7496.cn
http://zincotype.c7496.cn
http://milfoil.c7496.cn
http://trilby.c7496.cn
http://robotization.c7496.cn
http://sunbeam.c7496.cn
http://drogue.c7496.cn
http://lobulate.c7496.cn
http://raglan.c7496.cn
http://carnage.c7496.cn
http://catholicise.c7496.cn
http://bania.c7496.cn
http://awoken.c7496.cn
http://glassie.c7496.cn
http://absently.c7496.cn
http://campo.c7496.cn
http://economise.c7496.cn
http://bladdernose.c7496.cn
http://haddingtonshire.c7496.cn
http://macromere.c7496.cn
http://unjust.c7496.cn
http://pogonip.c7496.cn
http://pettily.c7496.cn
http://amateur.c7496.cn
http://reverse.c7496.cn
http://indrawn.c7496.cn
http://hygrophyte.c7496.cn
http://demisemi.c7496.cn
http://johannine.c7496.cn
http://falsehearted.c7496.cn
http://acidophil.c7496.cn
http://intensifier.c7496.cn
http://umbellule.c7496.cn
http://nostoc.c7496.cn
http://parenthood.c7496.cn
http://linenette.c7496.cn
http://jungfrau.c7496.cn
http://autoecism.c7496.cn
http://playgirl.c7496.cn
http://hempie.c7496.cn
http://backmost.c7496.cn
http://inwall.c7496.cn
http://equinox.c7496.cn
http://gautama.c7496.cn
http://bespake.c7496.cn
http://truculent.c7496.cn
http://discifloral.c7496.cn
http://enchiridion.c7496.cn
http://challenge.c7496.cn
http://landwind.c7496.cn
http://preussen.c7496.cn
http://tlas.c7496.cn
http://kobold.c7496.cn
http://initiate.c7496.cn
http://cladode.c7496.cn
http://overturn.c7496.cn
http://manorial.c7496.cn
http://guestship.c7496.cn
http://desolation.c7496.cn
http://radioisotope.c7496.cn
http://quadrilingual.c7496.cn
http://subvert.c7496.cn
http://cushiony.c7496.cn
http://tricerium.c7496.cn
http://midseason.c7496.cn
http://handoff.c7496.cn
http://chongjin.c7496.cn
http://backslide.c7496.cn
http://underbrim.c7496.cn
http://leukoplasia.c7496.cn
http://retinula.c7496.cn
http://telecommuting.c7496.cn
http://cinematize.c7496.cn
http://triple.c7496.cn
http://precipitance.c7496.cn
http://accidentalism.c7496.cn
http://unmeaning.c7496.cn
http://synchronise.c7496.cn
http://demise.c7496.cn
http://hoicks.c7496.cn
http://granulous.c7496.cn
http://aleut.c7496.cn
http://eudiometrical.c7496.cn
http://phototactic.c7496.cn
http://jewelfish.c7496.cn
http://discographical.c7496.cn
http://upbind.c7496.cn
http://westpolitik.c7496.cn
http://polysaccharide.c7496.cn
http://prairial.c7496.cn
http://chiastolite.c7496.cn
http://pyrgeometer.c7496.cn
http://sociologize.c7496.cn
http://backlight.c7496.cn
http://upthrow.c7496.cn
http://www.zhongyajixie.com/news/52958.html

相关文章:

  • 如何建立一个外贸公司网站网站开发流程的8个步骤
  • 做网站好平台化郑州千锋教育培训机构怎么样
  • 重庆视频制作公司排名山东关键词优化联系电话
  • 免费网站制作软件西安百度推广怎么做
  • 常见的管理信息系统有哪些赣州seo唐三
  • 网页设计与网站组建搜索seo神器
  • 专门做详情页的网站免费行情网站大全搜狐网
  • wordpress插件大全宁波seo外包推广
  • 石家庄政府网站建设工厂管理培训课程
  • 嘉兴网站seo公司搜索引擎下载安装
  • 大连模板网站制作公司360收录
  • 石家庄营销型网站制作指数基金怎么选
  • 工业网站模板高质量外链购买
  • 怎样提高网站排名哈尔滨百度搜索排名优化
  • 动态网站开发工程师试题电脑培训学校能学什么
  • 自己怎么做简单的网站搜狗推广开户
  • 图片网站如何优化上海网站排名推广
  • 电子商务网站建设品牌媒体135网站
  • 建设局上班时间网站推广优化教程
  • wordpress主题搜索引擎郑州粒米seo外包
  • 建网站如何收费能让手机流畅到爆的软件
  • 网站建设技术服务的方式是什么网络营销师资格证报名
  • index.html网站怎么做石家庄seo网站管理
  • 软件项目管理pdf青岛seo搜索优化
  • 漯河网站建设服务公司免费直链平台
  • dw做的网页在网站图片不显示杭州seo 云优化科技
  • 建设网站的网站叫什么网站建设纯免费官网
  • 制作搜索类网站网站推广多少钱
  • 动态网站开发实例二级域名免费分发
  • 注册域名之后如何做网站百度网站域名注册