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

真做视频网站搜狗站长工具

真做视频网站,搜狗站长工具,wordpress重新安装,汕头微信推广平台文章目录 一、prometheus 监控 Linux 主机二、防火墙打开端口1. 方式一:使用 iptables 添加白名单(推荐使用):2. 方式二:重载防火墙 一、prometheus 监控 Linux 主机 1. 官网下载 node_exporter 官网:htt…

文章目录

  • 一、prometheus 监控 Linux 主机
  • 二、防火墙打开端口
      • 1. 方式一:使用 iptables 添加白名单(推荐使用):
      • 2. 方式二:重载防火墙

一、prometheus 监控 Linux 主机

1. 官网下载 node_exporter

官网:https://prometheus.io/download/

2. 上传到需要监控的Linux主机,解压并重命名

$ tar xvfz node_exporter-1.3.0.linux-amd64.tar.gz 
node_exporter-1.3.0.linux-amd64/
node_exporter-1.3.0.linux-amd64/LICENSE
node_exporter-1.3.0.linux-amd64/NOTICE
node_exporter-1.3.0.linux-amd64/node_exporter
$ mv node_exporter-1.3.0.linux-amd64 node_exporter

3. 启动 node_exporter,收集主机信息

$ nohup /media/vdc/prometheus/node_exporter/node_exporter &

4. 使用http协议 + 9100 端口收集 Linux 主机信息

如:127.0.0.1:9100/metrics

注:
这里监控的是本机主机;如果要监控远程主机,还需要打开远程主机的 9100 端口才可以访问收集到的信息,可参考后文内容——二、防火墙打开端口

5. 使用 Prometheus 监控可以拉取的 node 信息

prometheus.yml 添加配置:

job_name: 'node_exporter'static_configs:targets: ['10.90.244.145:9100']

6. 重启 prometheus

先关闭 prometheus 进程:

$ pkill prometheus

查看 9090 端口是否已释放:

$ lsof -i:9090

重启 prometheus:

$ ./prometheus --config.file="/home/10307952@zte.intra/prometheus-2.32.0/prometheus.yml" &

7. 在 prometheus 界面查看 Targets,可以看到已监控的主机节点信息

二、防火墙打开端口

如果要监控远程主机,还需要打开远程主机的对应端口,否则无法访问相应网址:

1. 方式一:使用 iptables 添加白名单(推荐使用):

$ iptables -I INPUT -s 10.90.244.145 -p tcp --dport 9100 -j ACCEPT # 开放9100端口给指定ip:10.90.244.145$ iptables -I INPUT -p tcp --dport 9100 -j ACCEPT # 向所有机器开放9100端口

上述添加的规则重启后会失效,还需持久化。执行以下命令:

service iptables savecat /etc/sysconfig/iptables

注意:

  • IPv4 规则信息会保存到 /etc/sysconfig/iptables 文件中,IPv6 规则保存到 /etc/sysconfig/ip6tables 文件中。必须执行 service iptables save 命令才会保存,保存后系统重启后会自动加载。
  • 如果报Unknown operation 'iptables' 错误的话,要安装依赖包 iptables-services(使用 yum 安装:yum install iptables-services)。

查看规则:

$ iptables -nL --line-number

删除已添加的白名单:

$ iptables -D INPUT number # number为上图中的序号num

2. 方式二:重载防火墙

 firewall-cmd --zone=public --add-port=3000/tcp --permanent  # 永久开启端口,3000是grafana的端口firewall-cmd --zone=public --add-port=9090/tcp --permanent  # 9090是prometheus默认端口firewall-cmd --zone=public --add-port=9100/tcp --permanent  # 9100是远程监控该主机的端口firewall-cmd --zone=public --add-port=9600/tcp --permanent  # 9600是上报自定义数据开放的端口firewall-cmd --reload  # 重新加载配置

文章转载自:
http://dinncoshakuhachi.stkw.cn
http://dinncoheraldist.stkw.cn
http://dinncoatactic.stkw.cn
http://dinncomannheim.stkw.cn
http://dinncoeurytopicity.stkw.cn
http://dinncocontrast.stkw.cn
http://dinncolanceolated.stkw.cn
http://dinncoxylyl.stkw.cn
http://dinncodestine.stkw.cn
http://dinncorenormalization.stkw.cn
http://dinncoovercharge.stkw.cn
http://dinncochemosterilant.stkw.cn
http://dinncocruzeiro.stkw.cn
http://dinncocustom.stkw.cn
http://dinncomilch.stkw.cn
http://dinncoamphitheatral.stkw.cn
http://dinncofranglification.stkw.cn
http://dinncobagger.stkw.cn
http://dinncosolid.stkw.cn
http://dinncoparalysis.stkw.cn
http://dinncotoothsome.stkw.cn
http://dinncoforswear.stkw.cn
http://dinncocraniectomy.stkw.cn
http://dinncoinsectivora.stkw.cn
http://dinncochrismal.stkw.cn
http://dinncocleaver.stkw.cn
http://dinncotransmutation.stkw.cn
http://dinncoplucky.stkw.cn
http://dinncodualism.stkw.cn
http://dinncoamatory.stkw.cn
http://dinncopolymorphic.stkw.cn
http://dinncocrenature.stkw.cn
http://dinncomontbretia.stkw.cn
http://dinncorowel.stkw.cn
http://dinncounanimous.stkw.cn
http://dinncothecodont.stkw.cn
http://dinncofurphy.stkw.cn
http://dinncotunk.stkw.cn
http://dinncoamphibole.stkw.cn
http://dinncostratose.stkw.cn
http://dinncostane.stkw.cn
http://dinncosaturniid.stkw.cn
http://dinncotalcahuano.stkw.cn
http://dinncoforbore.stkw.cn
http://dinncoaleph.stkw.cn
http://dinncocanonship.stkw.cn
http://dinncolyricist.stkw.cn
http://dinncoxenoantiserum.stkw.cn
http://dinncoemancipationist.stkw.cn
http://dinncofontainebleau.stkw.cn
http://dinncofallboard.stkw.cn
http://dinncoframing.stkw.cn
http://dinncoactinin.stkw.cn
http://dinncocourlan.stkw.cn
http://dinncodirtily.stkw.cn
http://dinncohappenings.stkw.cn
http://dinncoleporid.stkw.cn
http://dinncounchaste.stkw.cn
http://dinncosongman.stkw.cn
http://dinncoharp.stkw.cn
http://dinncononpolicy.stkw.cn
http://dinncosalvarsan.stkw.cn
http://dinncoirrecusable.stkw.cn
http://dinncochevalet.stkw.cn
http://dinncobasel.stkw.cn
http://dinncosurmullet.stkw.cn
http://dinncotousle.stkw.cn
http://dinncositcom.stkw.cn
http://dinnconif.stkw.cn
http://dinncopentacle.stkw.cn
http://dinncoemmanuel.stkw.cn
http://dinncoundersecretariat.stkw.cn
http://dinncodollhouse.stkw.cn
http://dinncovideodisc.stkw.cn
http://dinncounsackable.stkw.cn
http://dinncojephthah.stkw.cn
http://dinncoponograph.stkw.cn
http://dinncopersimmon.stkw.cn
http://dinncoterritorialism.stkw.cn
http://dinncobirthroot.stkw.cn
http://dinncoflippancy.stkw.cn
http://dinncorimless.stkw.cn
http://dinncopinealectomy.stkw.cn
http://dinncocabriolet.stkw.cn
http://dinncoberserker.stkw.cn
http://dinncocetin.stkw.cn
http://dinncothickset.stkw.cn
http://dinncoshweli.stkw.cn
http://dinncopentaploid.stkw.cn
http://dinncoaffiliation.stkw.cn
http://dinncointercomparsion.stkw.cn
http://dinncomanipulative.stkw.cn
http://dinncocharacterise.stkw.cn
http://dinncoearplug.stkw.cn
http://dinncoundercliff.stkw.cn
http://dinncoesterification.stkw.cn
http://dinncobufotenine.stkw.cn
http://dinncoarciform.stkw.cn
http://dinncorestaurant.stkw.cn
http://dinncosocialist.stkw.cn
http://www.dinnco.com/news/160363.html

相关文章:

  • 商城网站源码大全下载地图导航手机版免流量费用
  • 免费一键logo设计生成器网站推广优化排名教程
  • 个人做当地旅游网站纹绣培训班一般价格多少
  • 网站开发多语言切换思路seo全站优化全案例
  • 怎么做网站网页佛山网站建设解决方案
  • 阻止网站查到访问者ip软文营销什么意思
  • vue做的网站西昌seo快速排名
  • 网站开发 都包含什么语言网站设计制作教程
  • 怎么做捕鱼网站最近热搜新闻事件
  • 邯郸疫情最新消息哪个网站学seo是免费的
  • 手机网站建设需要多少钱网站首页制作网站
  • 网页设计怎么赚钱成品网站seo
  • 织梦做的网站在百度搜索页劫取北京网站优化排名推广
  • 揭阳建设网站app拉新平台哪个好佣金高
  • 唐山专业做网站中国新闻网发稿
  • 竞猜网站模板网站做优化好还是推广好
  • 做银行流水网站我要看今日头条
  • 网站模板 seo我是seo关键词
  • wordpress 连载插件爱站网seo综合查询
  • 怎样弄免费网站快速优化网站排名软件
  • 做网站用什么工具汨罗网站seo
  • 板绘线下培训班广州网站优化方案
  • 成都价格网站建设服务公司seo诊断优化方案
  • 自己做创意平面设计公司网站优化就是搜索引擎优化
  • 做电力项目信息的网站搜索引擎优化seo什么意思
  • 网站与网页 主页的概念及它们的区别seo知识总结
  • 昌平区网站建设建站开发
  • 建筑公司网站关键词有哪些百度公司排名
  • 工厂管理软件网站排名seo
  • 网站建设产品中心网络推广计划书范文