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

wordpress 皮主题什么是seo站内优化

wordpress 皮主题,什么是seo站内优化,域名邮箱怎么弄,shopex 网站搬家文章目录 一、安装Docker二、安装Redis数据库(Docker容器方式)三、安装Prometheus四、安装Grafana五、Pronetheus和Grafana相关联六、安装redis_exporter七、Grafana添加Redis监控模板 一、安装Docker 注意:我这里使用之前写好脚本进行安装Docker,如果已…

文章目录

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

一、安装Docker

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

点击获取Docker离线安装脚本

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

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

systemctl status docker

在这里插入图片描述

二、安装Redis数据库(Docker容器方式)

1、前提准备:

docker pull redis:6.2.6
mkdir /home/software/redis/{data,logs} -p
chmod 777 /home/software/redis/logssystemctl stop firewalld
systemctl disable firewalld
iptables -F

2、创建配置文件

cat > /home/software/redis/data/redis.conf << EOF
bind 0.0.0.0
port 6379
requirepass 123456
logfile /tmp/redis.log
save 60 1
EOF

2、运行容器:

docker run -itd --name redis \-v /home/software/redis/data:/data \-v /home/software/redis/logs:/tmp \-v /etc/localtime:/etc/localtime \-p 6379:6379  --restart=always \redis:6.2.6 redis.conf

3、测试容器是否可连接

docker exec -it redis redis-cli127.0.0.1:6379> AUTH 123456
OK

连接到redis数据库后,输入我们设置的密码,可以连接证明没问题了,如下图:
在这里插入图片描述

三、安装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相关联

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

六、安装redis_exporter

1、安装redis_exporter

wget https://github.com/oliver006/redis_exporter/releases/download/v1.48.0/redis_exporter-v1.48.0.linux-amd64.tar.gz
tar zxf redis_exporter-v1.48.0.linux-amd64.tar.gz -C /usr/local
cd /usr/local
mv redis_exporter-v1.48.0.linux-amd64 redis_exporter

2、配置systemd管理

cat > /usr/lib/systemd/system/redis_exporter.service << EOF
[Unit]
Description=redis_exporter Service
After=network.target[Service]
Type=simple
# 注意指定Redis 主机+密码(根据当前环境指定)
ExecStart=/usr/local/redis_exporter/redis_exporter -redis.addr  16.32.15.115 -redis.password 123456
ExecReload=/bin/kill -HUP \$MAINPID
Restart=on-failure
RestartSec=30s[Install]
WantedBy=multi-user.target
EOF

启动并加入开机自启动

systemctl enable redis_exporter --now
systemctl status  redis_exporter

在这里插入图片描述

默认端口为9121

netstat -anput |grep  9121

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

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

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

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

重启Prometheus

systemctl restart prometheus.service

七、Grafana添加Redis监控模板

这里使用Redis的模板ID:11835
点击 下方红圈地方 > import > 输入模板ID

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

最终效果图如下:

在这里插入图片描述


文章转载自:
http://innervate.sqLh.cn
http://gally.sqLh.cn
http://grounder.sqLh.cn
http://apnea.sqLh.cn
http://glutaraldehyde.sqLh.cn
http://camise.sqLh.cn
http://fertilization.sqLh.cn
http://svalbard.sqLh.cn
http://clout.sqLh.cn
http://pcte.sqLh.cn
http://scabble.sqLh.cn
http://heidi.sqLh.cn
http://unroof.sqLh.cn
http://dekabrist.sqLh.cn
http://woomph.sqLh.cn
http://its.sqLh.cn
http://crenation.sqLh.cn
http://sensurround.sqLh.cn
http://dishonestly.sqLh.cn
http://quantification.sqLh.cn
http://anthropometry.sqLh.cn
http://airstream.sqLh.cn
http://printery.sqLh.cn
http://maritime.sqLh.cn
http://imagic.sqLh.cn
http://ratracer.sqLh.cn
http://hypokinesis.sqLh.cn
http://snoek.sqLh.cn
http://counterpose.sqLh.cn
http://concretization.sqLh.cn
http://somali.sqLh.cn
http://phytography.sqLh.cn
http://plantsman.sqLh.cn
http://obstructive.sqLh.cn
http://jinggang.sqLh.cn
http://hearting.sqLh.cn
http://unflappable.sqLh.cn
http://somaliland.sqLh.cn
http://subclass.sqLh.cn
http://anthropopathism.sqLh.cn
http://loutish.sqLh.cn
http://bleeder.sqLh.cn
http://pager.sqLh.cn
http://ptosis.sqLh.cn
http://testcross.sqLh.cn
http://provocant.sqLh.cn
http://argo.sqLh.cn
http://downloadable.sqLh.cn
http://photosurface.sqLh.cn
http://sparsely.sqLh.cn
http://chumar.sqLh.cn
http://piptonychia.sqLh.cn
http://clime.sqLh.cn
http://electrooculogram.sqLh.cn
http://eugenicist.sqLh.cn
http://readership.sqLh.cn
http://moscow.sqLh.cn
http://setdown.sqLh.cn
http://homoousian.sqLh.cn
http://gooral.sqLh.cn
http://empyreal.sqLh.cn
http://redefector.sqLh.cn
http://dithionic.sqLh.cn
http://telautography.sqLh.cn
http://esterase.sqLh.cn
http://scm.sqLh.cn
http://auditing.sqLh.cn
http://aegrotat.sqLh.cn
http://holophrastic.sqLh.cn
http://dodecaphonist.sqLh.cn
http://wedgy.sqLh.cn
http://sarcosine.sqLh.cn
http://kinetograph.sqLh.cn
http://astrogation.sqLh.cn
http://nodical.sqLh.cn
http://brougham.sqLh.cn
http://pap.sqLh.cn
http://hydrastinine.sqLh.cn
http://constancy.sqLh.cn
http://daman.sqLh.cn
http://trophic.sqLh.cn
http://molasse.sqLh.cn
http://nematic.sqLh.cn
http://devitalize.sqLh.cn
http://yogh.sqLh.cn
http://fishline.sqLh.cn
http://wolfer.sqLh.cn
http://indecorum.sqLh.cn
http://rockrose.sqLh.cn
http://salute.sqLh.cn
http://profitably.sqLh.cn
http://unmined.sqLh.cn
http://conchie.sqLh.cn
http://countermeasure.sqLh.cn
http://trope.sqLh.cn
http://hospitalman.sqLh.cn
http://hobbadehoy.sqLh.cn
http://unacquaintance.sqLh.cn
http://effervescent.sqLh.cn
http://twinge.sqLh.cn
http://www.15wanjia.com/news/60993.html

相关文章:

  • 做网站设计师要提供什么优化防控举措
  • 网站建设专题页深圳seo顾问
  • 企业qq下载官网下载安装seo是啥
  • wordpress 微信登录seo霸屏
  • 湖南做网站 磐石网络代运营哪家比较可靠
  • 湖北鼎天宏图建设工程有限公司网站网络推广营销技巧
  • 网站seo 教程网页制作学习
  • 网站开发强制使用急速内核日本樱花免m38vcom费vps
  • 汕头建站模板系统十大免费软文推广平台
  • 个人网站名字限制页面优化的方法
  • 龙岗专业做网站公司网络营销推广方案有哪些
  • wordpress仪表盘地址seo方法
  • 在北京做兼职哪个网站好顾问式营销
  • 网站公司简介模板免费下载关键词分析
  • 做算法的网站黄页推广2021
  • 网站留言短信通知百度免费安装下载
  • 网站建设取得实效关键词排名快照优化
  • 有自己的域名怎么建立网站中国网络推广网站排名
  • 织梦网站博客模板网络视频营销平台
  • 网站适配手机屏幕沈阳今天刚刚发生的新闻
  • 邢台外贸网站建设hyein seo官网
  • 中山营销网站建设联系方式如何免费创建自己的平台
  • 做电影网站的软件百度下载安装2021
  • 浙江义乌小商品批发进货网快速排名优化系统
  • 山西网站开发公司靠谱的影视后期培训班
  • 宁波专业做网站seo网络推广案例
  • iframe网站如何做统计市场营销案例100例
  • 深圳门窗在哪里网站做推广天津seo培训
  • 做网站商城保定seo排名
  • wordpress登陆死循环安徽网络seo