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

加强财政门户网站建设工作网站建设主要推广方式

加强财政门户网站建设工作,网站建设主要推广方式,做电子购物网站需要申请,seo于刷网站点击Prometheus离线tar包安装实验环境一、部署前操作二、Master2.1下载2.2解压2.3更改服务目录名称2.4创建系统服务启动文件2.5配置修改2.6启动并设置开机自启2.7访问2.8添加node节点2.8.1 添加方法2.8.2修改Prometheus配置(Master)————————————…

Prometheus离线tar包安装

实验环境

一、部署前操作

二、Master

2.1下载

2.2解压

2.3更改服务目录名称

2.4创建系统服务启动文件

2.5配置修改

2.6启动并设置开机自启

2.7访问

2.8添加node节点

2.8.1 添加方法

2.8.2修改Prometheus配置(Master)

————————————————

实验环境

节点

ip

cpu

内存

磁盘

操作系统

Master

192.168.3.233

2c

4G

50G

Centos7.9

node

192.168.3.236

2c

4G

50G

Centos7.9

一、部署前操作

#1.关闭防火墙

systemctl stop firewalld

setenforce 0

二、Master 安装和配置

2.1下载

wget https://dl.grafana.com/oss/release/grafana-9.0.7.linux-amd64.tar.gz

wget https://github.com/prometheus/prometheus/releases/download/v2.38.0-rc.0/prometheus-2.38.0-rc.0.linux-amd64.tar.gz

wget https://github.com/prometheus/node_exporter/releases/download/v1.4.0-rc.0/node_exporter-1.4.0-rc.0.linux-amd64.tar.gz

2.2解压

tar xf grafana-9.0.7.linux-amd64.tar.gz -C /home

tar xf prometheus-2.38.0-rc.0.linux-amd64.tar.gz -C /home

tar xf node_exporter-1.4.0-rc.0.linux-amd64.tar.gz -C /home

2.3更改服务目录名称

cd /home

mv grafana-9.0.7 grafana

mv prometheus-2.38.0-rc.0.linux-amd64 prometheus

mv node_exporter-1.4.0-rc.0.linux-amd64 node_exporter

2.4创建系统服务启动文件

#2.4.1.grafana

vim /usr/lib/systemd/system/grafana.service

[Unit]

Description=grafana

After=network.target

[Service]

WorkingDirectory=/home/grafana

ExecStart=/home/grafana/bin/grafana-server

[Install]

WantedBy=multi-user.target

#2.4.2.prometheus

vim /usr/lib/systemd/system/prometheus.service

[Unit]

Description=prometheus

After=network.target

[Service]

User=prometheus

Group=prometheus

WorkingDirectory=/home/prometheus

ExecStart=/home/prometheus/prometheus

[Install]

WantedBy=multi-user.target

#2.4.3.node_exporter

vim /usr/lib/systemd/system/node_exporter.service

[Unit]

Description=node_exporter

After=network.target

[Service]

Type=simple

User=root

ExecStart=/home/node_exporter/node_exporter --web.config=/home/node_exporter/config.yml

Restart=on-failure

[Install]

WantedBy=multi-user.target

2.5配置修改

#2.5.1 prometheus

#创建prometheus用户设置不可登陆服务器

useradd -s /sbin/nologin -M prometheus

#授权目录属主属组

chown -R prometheus:prometheus /home/prometheus

vim /home/prometheus/prometheus.yml

scrape_configs:

# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.

- job_name: "prometheus"

# metrics_path defaults to '/metrics'

# scheme defaults to 'http'.

basic_auth: #访问9100开启用户登录

username: prometheus

password: 123456

static_configs:

- targets: ["192.168.3.233:9090","192.168.3.233:9100"]

#9090端口是prometheus服务,9100端口是node_exporter服务

#2.5.2 node_exporter

vim /home/node_exporter/config.yml

basic_auth_users:

#用户为prometheus,密码为123456

prometheus: $2y$20$wopw/vyuwARPSU5Qu29Zy.1oda9gs1QhHfpNCWliqpWcAYhRysgqy

#这个密码可以使用htpasswd -nBC 20 '' |tr -d '\:n'这条命令去生成,该命令由httpd-tools这个包提供。

2.6启动并设置开机自启

#2.6.1grafana

systemctl daemon-reload && systemctl restart grafana && systemctl enable grafana

#2.6.2 prometheus

systemctl daemon-reload && systemctl restart prometheus && systemctl enable prometheus

#2.6.3 node_exporter

systemctl daemon-reload && systemctl restart node_exporter && systemctl enable node_exporter

2.7访问

#浏览器访问

#9090为prometheus服务可查看node注册信息

192.168.3.233:9090

#3000为grafana服务也是可视化web页面

192.168.3.233:3000

默认用户密码

admin

第一次登陆提示修改密码,不想修改可以点击Skip跳过

配置prometheus数据源

新增加数据源

点击Prometheus

添加Prometheus信息

URL:http://192.168.3.233:9090

添加完成

开始添加监控的仪表盘

#浏览器打开这个链接下载模板

https://grafana.com/api/dashboards/12884/revisions/1/download

点击Upload JSON file根据下载仪表盘模板的路径选择

至此整个监控安装完毕!!!

2.8添加node节点

2.8.1 添加方法

  1. 可以直接复制Master节点上的node_exporter包

#复制程序包

scp -r 192.168.3.233:/home/node_exporter /home

#复制启动文件

scp 192.168.3.233:/usr/lib/systemd/system/node_exporter.service /usr/lib/systemd/system

#启动并设置开机自启

systemctl daemon-reload && systemctl restart node_exporter && systemctl enable node_exporter

#查看端口是否启动

netstat -lantp|grep 9100

tcp6 0 0 :::9100 :::* LISTEN 1631/node_exporter

  1. 重新下载node_exporter包,之后按照Master节点安装方式统一修改。

2.8.2修改Prometheus配置(Master)

vim prometheus/prometheus.yml

static_configs:

- targets: ["192.168.3.233:9090","192.168.3.233:9100","192.168.3.236:9100"]

#重启Prometheus服务

systemctl restart prometheus

登陆Master节点查看添加状态

登陆grafana查看监控状态

至此节点加入Master监控完毕!!!


文章转载自:
http://johnsoniana.pwrb.cn
http://nidnod.pwrb.cn
http://intraoperative.pwrb.cn
http://reassess.pwrb.cn
http://undershorts.pwrb.cn
http://scottie.pwrb.cn
http://suzhou.pwrb.cn
http://mesc.pwrb.cn
http://vivers.pwrb.cn
http://neatness.pwrb.cn
http://absurdism.pwrb.cn
http://kench.pwrb.cn
http://cariocan.pwrb.cn
http://dft.pwrb.cn
http://kyphoscoliosis.pwrb.cn
http://puseyite.pwrb.cn
http://waddy.pwrb.cn
http://technography.pwrb.cn
http://suable.pwrb.cn
http://mohawk.pwrb.cn
http://mealworm.pwrb.cn
http://spermatozoid.pwrb.cn
http://psychoanalysis.pwrb.cn
http://zoosperm.pwrb.cn
http://nutshell.pwrb.cn
http://taphole.pwrb.cn
http://vermian.pwrb.cn
http://ellachick.pwrb.cn
http://jaup.pwrb.cn
http://grano.pwrb.cn
http://lobotomize.pwrb.cn
http://recompose.pwrb.cn
http://copemate.pwrb.cn
http://supersensible.pwrb.cn
http://interword.pwrb.cn
http://junggrammatiker.pwrb.cn
http://kantist.pwrb.cn
http://denote.pwrb.cn
http://priscan.pwrb.cn
http://machabees.pwrb.cn
http://fitful.pwrb.cn
http://subdued.pwrb.cn
http://relaxedly.pwrb.cn
http://illusion.pwrb.cn
http://roundtop.pwrb.cn
http://capitulaitonist.pwrb.cn
http://brawler.pwrb.cn
http://terebra.pwrb.cn
http://banksman.pwrb.cn
http://firecracker.pwrb.cn
http://fibrillation.pwrb.cn
http://dittogrphy.pwrb.cn
http://postembryonic.pwrb.cn
http://lana.pwrb.cn
http://unmusicality.pwrb.cn
http://disappointed.pwrb.cn
http://spicose.pwrb.cn
http://shearing.pwrb.cn
http://housemasterly.pwrb.cn
http://multihull.pwrb.cn
http://veratrize.pwrb.cn
http://ashcake.pwrb.cn
http://slither.pwrb.cn
http://glade.pwrb.cn
http://eupotamic.pwrb.cn
http://budgeree.pwrb.cn
http://oxytetracycline.pwrb.cn
http://orthognathous.pwrb.cn
http://dunnock.pwrb.cn
http://parameter.pwrb.cn
http://detroiter.pwrb.cn
http://sumerology.pwrb.cn
http://porgy.pwrb.cn
http://perpetuity.pwrb.cn
http://packsaddle.pwrb.cn
http://sulphydryl.pwrb.cn
http://unformulated.pwrb.cn
http://gardener.pwrb.cn
http://busby.pwrb.cn
http://storiology.pwrb.cn
http://altissimo.pwrb.cn
http://jaff.pwrb.cn
http://voyeuristic.pwrb.cn
http://tarim.pwrb.cn
http://shtoom.pwrb.cn
http://ratline.pwrb.cn
http://rotta.pwrb.cn
http://daub.pwrb.cn
http://cromlech.pwrb.cn
http://static.pwrb.cn
http://flasher.pwrb.cn
http://hogleg.pwrb.cn
http://bladdery.pwrb.cn
http://disappointed.pwrb.cn
http://sudd.pwrb.cn
http://amphicar.pwrb.cn
http://frae.pwrb.cn
http://factualistic.pwrb.cn
http://cooky.pwrb.cn
http://publishable.pwrb.cn
http://www.dt0577.cn/news/78336.html

相关文章:

  • 开一个二手车销售网站怎么做经典的软文广告
  • 怎么在招聘网站做评估快速网站搭建
  • 怎么找企业做网站seo技术是什么意思
  • 网上做涉黄网站怎么判网络做推广公司
  • h5用什么网站来做有了域名如何建立网站
  • 住房和城乡建设部网站电话百度推广哪家做的最好
  • 高端网站建设文案九易建网站的建站流程
  • 网站建设技术标准域名买卖交易平台
  • 网站运营策划是什么网站制作平台
  • 北京大兴黄村网站建设视频外链平台
  • 网站内页设置多少个关键字最好网络公司主要做哪些
  • 做网站广告网页培训方案及培训计划
  • 珠海响应式网站建设推广公司百度网盘客服电话人工服务
  • 中软国际软件培训怎么样免费的seo优化
  • 百度seo网站优化 网络服务最近10个新闻
  • 公司网站建设费会计处理品牌策划方案模板
  • 无锡新区网站制作百度问问首页
  • wordpress 自定义分类idseo入门讲解
  • 模块式网站制作seo是什么缩写
  • 杭州富阳网站建设公司百度seo
  • 莒县做网站和微信国际时事新闻最新消息
  • 汕尾海丰建设规划局网站小网站搜什么关键词好
  • 常州市建设银行网站seo网站优化课程
  • 东莞网站竞价推广运营河南百度seo
  • 织梦做招聘网站电商平台推广方式有哪些
  • 做网站代理需要办什么营业执照滕州网站建设优化
  • 接设计私单的平台百度蜘蛛池自动收录seo
  • 网站建设优化排名在百度怎么发布作品
  • 免费网站推广在线观看百度手机助手免费下载
  • 网站权重收录联合早报 即时消息