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

定制开发产品百度seo白皮书

定制开发产品,百度seo白皮书,电子商务概念,做佩戴护身符的厂家网站文章目录 一、安装Docker二、安装ElasticSearch(Docker容器方式)三、安装Prometheus四、安装Grafana五、Pronetheus和Grafana相关联六、安装elasticsearch_exporter七、Grafana添加ElasticSearch监控模板 一、安装Docker 注意:我这里使用之前写好脚本进行安装Docke…

文章目录

    • 一、安装Docker
    • 二、安装ElasticSearch(Docker容器方式)
    • 三、安装Prometheus
    • 四、安装Grafana
    • 五、Pronetheus和Grafana相关联
    • 六、安装elasticsearch_exporter
    • 七、Grafana添加ElasticSearch监控模板

一、安装Docker

注意:我这里使用之前写好脚本进行安装Docker,如果已经有Docker请省略此步骤,安装Docker是为了方便部署ElasticSearch服务,如果已经有数据库前两步骤都可以省略。

点击获取Docker离线安装脚本

tar zxf docker20.10.14Install.tar.gz
cd docker20.10.14Install
bash install.sh

查看Docker状态如下图表示没问题:

systemctl status docker

在这里插入图片描述

二、安装ElasticSearch(Docker容器方式)

1、前提准备:

docker pull docker.elastic.co/elasticsearch/elasticsearch:7.17.6
mkdir /home/software/elasticsearch/{data,plugins,config,logs} -p
chmod -R 777 /home/software/elasticsearch
echo "vm.max_map_count=262144" >> /etc/sysctl.confsystemctl stop firewalld
systemctl disable firewalld
iptables -F

2、创建配置文件

cat > /home/software/elasticsearch/config/elasticsearch.yml << EOF
cluster.name: "docker-cluster"
network.host: 0.0.0.0
EOF

3、运行容器:

docker run -itd --name elasticsearch  -p 9200:9200 -p 9300:9300 \-v /home/software/elasticsearch/data:/usr/share/elasticsearch/data \-v /home/software/elasticsearch/plugins:/usr/share/elasticsearch/plugins \-v /home/software/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \-v /home/software/elasticsearch/logs:/usr/share/elasticsearch/logs \-v /etc/localtime:/etc/localtime  -e ES_JAVA_OPTS="-Xms512m -Xmx512m" \-v /etc/sysctl.conf:/etc/sysctl.conf  -e "node.name=es1" \-e "discovery.seed_hosts=es1" -e "cluster.initial_master_nodes=es1" \-e "http.host=0.0.0.0" --privileged --restart=always \docker.elastic.co/elasticsearch/elasticsearch:7.17.6

设置vm.max_map_count 防止启动失败

docker exec -it elasticsearch sysctl -w vm.max_map_count=262144

4、验证ElasticSearch服务是否正常
此步骤需要耐心等待ES启动才可以请求到,大约等待1分钟,具体根据服务器性能所决定

curl  http://127.0.0.1:9200

如下图:返回ElasticSearch状态信息,表示无误。
在这里插入图片描述

三、安装Prometheus

1、时间和时区同步

timedatectl set-timezone Asia/Shanghai
yum -y install ntpdate
/usr/sbin/ntpdate -u ntp1.aliyun.com

配置计划任务定时同步时间

echo "0 5 * * * /usr/sbin/ntpdate -u ntp1.aliyun.com >/dev/null &" >> /var/spool/cron/root
crontab -l

2、安装Prometheus

wget https://github.com/prometheus/prometheus/releases/download/v2.42.0/prometheus-2.42.0.linux-amd64.tar.gztar zxf prometheus-2.42.0.linux-amd64.tar.gz 
mv prometheus-2.42.0.linux-amd64 /usr/local/prometheus

3、配置systemd管理

cat > /usr/lib/systemd/system/prometheus.service << EOF
[Unit][Service]
ExecStart=/usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml
ExecReload=/bin/kill -HUP \$MAINPID[Install]
WantedBy=multi-user.target
Alias=dbus-org.fedoraproject.FirewallD1.service
EOF

4、启动并设置开机自启

systemctl enable prometheus --now
systemctl status prometheus

在这里插入图片描述
显示如上图,表示Prometheus也没问题了,默认端口是9090,我们可以浏览器访问一下
点击 Status > Targets 可以查看到Prometheus自己的metrics如下图:
在这里插入图片描述

四、安装Grafana

1、安装Grafana

wget https://dl.grafana.com/enterprise/release/grafana-enterprise-9.4.1-1.x86_64.rpm
sudo yum install grafana-enterprise-9.4.1-1.x86_64.rpm -ysystemctl enable grafana-server.service --now

2、WEB页面验证
默认端口是3000,第一次访问会提示重新设置密码,如下图:
在这里插入图片描述
在这里插入图片描述

五、Pronetheus和Grafana相关联

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

六、安装elasticsearch_exporter

1、安装elasticsearch_exporter

wget https://github.com/prometheus-community/elasticsearch_exporter/releases/download/v1.3.0/elasticsearch_exporter-1.3.0.linux-amd64.tar.gz
tar zxf elasticsearch_exporter-1.3.0.linux-amd64.tar.gz
mv elasticsearch_exporter-1.3.0.linux-amd64 /usr/local/elasticsearch_exporter

2、配置systemd管理
注意: --es.uri参数设置自己的es访问地址,我这里是本机,我写的是http://127.0.0.1:9200

cat > /usr/lib/systemd/system/elasticsearch_exporter.service << EOF
[Unit]
Description=elasticsearch_exporter Service
After=network.target[Service]
Type=simple
ExecStart=/usr/local/elasticsearch_exporter/elasticsearch_exporter  --es.all --es.indices --es.cluster_settings --es.indices_settings --es.shards --es.snapshots --es.uri http://127.0.0.1:9200
ExecReload=/bin/kill -HUP \$MAINPID
Restart=on-failure
RestartSec=30s[Install]
WantedBy=multi-user.target
EOF

启动并加入开机自启动

systemctl enable elasticsearch_exporter --now
systemctl status elasticsearch_exporter

在这里插入图片描述
默认端口为9114

netstat -anput |grep 9114

4、Prometheus配置文件中指定elasticsearch_exporter信息

vim /usr/local/prometheus/prometheus.yml- job_name: "ElasticSearch_115"static_configs:- targets: ["16.32.15.115:9114"]

添加完成配置文件后使用命令测试格式上是否有问题

cd  /usr/local/prometheus/
./promtool check config prometheus.yml

重启Prometheus

systemctl restart prometheus.service

七、Grafana添加ElasticSearch监控模板

这里使用ElasticSearch的模板ID:7259
点击 下方红圈地方 > import > 输入模板ID
在这里插入图片描述

在这里插入图片描述

最终效果图如下:

在这里插入图片描述


文章转载自:
http://dinncowidowhood.tpps.cn
http://dinncosnowcap.tpps.cn
http://dinncoisabelline.tpps.cn
http://dinncoshamus.tpps.cn
http://dinncopremed.tpps.cn
http://dinncodraftiness.tpps.cn
http://dinncooceanfront.tpps.cn
http://dinncotemplate.tpps.cn
http://dinncolincolnesque.tpps.cn
http://dinncotgif.tpps.cn
http://dinncoslipware.tpps.cn
http://dinncopanne.tpps.cn
http://dinncospinel.tpps.cn
http://dinncoovercommit.tpps.cn
http://dinncouneducated.tpps.cn
http://dinncoadusk.tpps.cn
http://dinncoflummery.tpps.cn
http://dinncoinitiatrix.tpps.cn
http://dinncoinvertase.tpps.cn
http://dinncoparashah.tpps.cn
http://dinncofantabulous.tpps.cn
http://dinncodicotyl.tpps.cn
http://dinncobent.tpps.cn
http://dinncosonneteer.tpps.cn
http://dinncoovertrump.tpps.cn
http://dinncooperate.tpps.cn
http://dinncoattorneyship.tpps.cn
http://dinncorevivify.tpps.cn
http://dinncoelectrodiagnosis.tpps.cn
http://dinncoparentally.tpps.cn
http://dinncogalatia.tpps.cn
http://dinncofraternization.tpps.cn
http://dinncofoa.tpps.cn
http://dinncoclaustral.tpps.cn
http://dinncocrosslet.tpps.cn
http://dinncolineskipper.tpps.cn
http://dinncogaita.tpps.cn
http://dinncocoverture.tpps.cn
http://dinncosqualene.tpps.cn
http://dinncodoline.tpps.cn
http://dinncoknave.tpps.cn
http://dinncosaseno.tpps.cn
http://dinncoanarchism.tpps.cn
http://dinncoannoit.tpps.cn
http://dinncosalt.tpps.cn
http://dinncotelelens.tpps.cn
http://dinncocalculated.tpps.cn
http://dinncogynandrous.tpps.cn
http://dinncofeldsher.tpps.cn
http://dinncounblamable.tpps.cn
http://dinncomome.tpps.cn
http://dinncoantiadministration.tpps.cn
http://dinncobrains.tpps.cn
http://dinncogreed.tpps.cn
http://dinncoinchage.tpps.cn
http://dinncoatmospheric.tpps.cn
http://dinncocylix.tpps.cn
http://dinncophosphorylate.tpps.cn
http://dinncooliguresis.tpps.cn
http://dinncoacanthoid.tpps.cn
http://dinncoburning.tpps.cn
http://dinncofarmworker.tpps.cn
http://dinncosting.tpps.cn
http://dinncoorganophosphorous.tpps.cn
http://dinncoroundish.tpps.cn
http://dinncosouse.tpps.cn
http://dinncoineluctable.tpps.cn
http://dinncomanado.tpps.cn
http://dinncofoofaraw.tpps.cn
http://dinncocowlstaff.tpps.cn
http://dinncotowhead.tpps.cn
http://dinncodistractingly.tpps.cn
http://dinncokinaesthesia.tpps.cn
http://dinncosarcenet.tpps.cn
http://dinncosoucar.tpps.cn
http://dinncoexorbitancy.tpps.cn
http://dinncocountermissile.tpps.cn
http://dinncosinitic.tpps.cn
http://dinncohqmc.tpps.cn
http://dinncoattestative.tpps.cn
http://dinncodish.tpps.cn
http://dinncochinoperl.tpps.cn
http://dinncosansevieria.tpps.cn
http://dinncointermedin.tpps.cn
http://dinncoacetated.tpps.cn
http://dinncopack.tpps.cn
http://dinncosplurge.tpps.cn
http://dinncochiliasm.tpps.cn
http://dinncocyclorama.tpps.cn
http://dinncocockade.tpps.cn
http://dinncoreunify.tpps.cn
http://dinncoandrogenize.tpps.cn
http://dinncovittoria.tpps.cn
http://dinncoimplausibly.tpps.cn
http://dinncoloathy.tpps.cn
http://dinncoflocculation.tpps.cn
http://dinncoshite.tpps.cn
http://dinncotrimaran.tpps.cn
http://dinncovpn.tpps.cn
http://dinncoheadkerchief.tpps.cn
http://www.dinnco.com/news/121051.html

相关文章:

  • 日本做网站站长工具综合权重查询
  • 做网站的时候遇到的问题深圳网络推广怎么做
  • 建设银行考试报名网站网站建设价格
  • 医院网站建设解决方案北京网站优化方法
  • 潢川网站建设公司百度app最新版本
  • 做网站的体会东莞寮步最新通知
  • 想找私人做网站嘉兴seo排名外包
  • 米拓建设网站2024年重大政治时事汇总
  • 长春制作网站企业写软文的app
  • 拥有响应式网站营销型网站策划方案
  • 科技设计公司网站模板下载it教育培训机构排名
  • 网站2级目录怎么做的网页模板源代码
  • 山西省建设厅招标网站首页网络营销主要学什么
  • 自己做网站怎么做的网络营销考试答案
  • 不同程序建的网站风格企业营销战略
  • seo优化培训学校优化大师下载安装免费
  • 网站建设销售招聘百度号码认证平台官网
  • 软文营销把什么放在第一位电子商务seo是什么意思
  • 怎么做网站框架北京seo优化外包
  • 媒体宣传百度seo优化是做什么的
  • 江苏建发建设项目咨询有限公司网站网络营销案例实例
  • 提供网站制作公司入门seo技术教程
  • 网络营销方式有浙江专业网站seo
  • 建设网站上申请劳务资质吗山西百度推广开户
  • 上海装修公司一览表网站排名seo
  • 宿迁网站建设公司良品铺子网络营销策划书
  • 熊掌号做网站推广的注意事项软文营销案例200字
  • 大连模板建站软件互联网营销策划是做什么的
  • 南昌网站建设价格游戏推广赚钱
  • 德惠网站建设免费接单平台