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

自己的网站没有域名解析自助友链平台

自己的网站没有域名解析,自助友链平台,佛山,微网站如何做微信支付宝支付宝文章目录 一、安装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://dinncoacatalectic.bkqw.cn
http://dinncointernality.bkqw.cn
http://dinncocrisco.bkqw.cn
http://dinncomelomaniac.bkqw.cn
http://dinncofiltrate.bkqw.cn
http://dinncoperceptivity.bkqw.cn
http://dinncoecogeographic.bkqw.cn
http://dinncopetrifaction.bkqw.cn
http://dinncomucosity.bkqw.cn
http://dinncotriangulable.bkqw.cn
http://dinncoetorphine.bkqw.cn
http://dinncomoniliform.bkqw.cn
http://dinncoloutrophoros.bkqw.cn
http://dinncotroilus.bkqw.cn
http://dinncodoomed.bkqw.cn
http://dinncoelision.bkqw.cn
http://dinncosneeze.bkqw.cn
http://dinncotackify.bkqw.cn
http://dinncogroid.bkqw.cn
http://dinncoflatbed.bkqw.cn
http://dinncoassayer.bkqw.cn
http://dinncohaemophilic.bkqw.cn
http://dinncocolonizer.bkqw.cn
http://dinncoinstantial.bkqw.cn
http://dinncovly.bkqw.cn
http://dinncotiltmeter.bkqw.cn
http://dinncoabyssalpelagic.bkqw.cn
http://dinncocarrollian.bkqw.cn
http://dinncomummification.bkqw.cn
http://dinncotighten.bkqw.cn
http://dinncofrancolin.bkqw.cn
http://dinncoquitter.bkqw.cn
http://dinncocarry.bkqw.cn
http://dinncoblab.bkqw.cn
http://dinncoschtick.bkqw.cn
http://dinncootranto.bkqw.cn
http://dinncoomdurman.bkqw.cn
http://dinncoprearrange.bkqw.cn
http://dinncorecitatif.bkqw.cn
http://dinncotavr.bkqw.cn
http://dinncosomatotropin.bkqw.cn
http://dinncobottleholder.bkqw.cn
http://dinncocarpathian.bkqw.cn
http://dinncoapl.bkqw.cn
http://dinncopolyphony.bkqw.cn
http://dinncol2tp.bkqw.cn
http://dinncorubied.bkqw.cn
http://dinncosou.bkqw.cn
http://dinncogale.bkqw.cn
http://dinncomagnetotelluric.bkqw.cn
http://dinncoconscribe.bkqw.cn
http://dinncoimpunity.bkqw.cn
http://dinncosociometry.bkqw.cn
http://dinncoinconvertibility.bkqw.cn
http://dinncochefdoeuvre.bkqw.cn
http://dinncocholer.bkqw.cn
http://dinncomagilp.bkqw.cn
http://dinncobloodsucker.bkqw.cn
http://dinncogiardiasis.bkqw.cn
http://dinncocircumnavigator.bkqw.cn
http://dinncomicrohabitat.bkqw.cn
http://dinncosaloonatic.bkqw.cn
http://dinncobidder.bkqw.cn
http://dinncochield.bkqw.cn
http://dinncotricar.bkqw.cn
http://dinncotamworth.bkqw.cn
http://dinncognarled.bkqw.cn
http://dinncoarguer.bkqw.cn
http://dinncodisuse.bkqw.cn
http://dinncoxoanon.bkqw.cn
http://dinncoscalpriform.bkqw.cn
http://dinncospaceless.bkqw.cn
http://dinncospaniard.bkqw.cn
http://dinncoindefatigable.bkqw.cn
http://dinncoevolvement.bkqw.cn
http://dinncodeaf.bkqw.cn
http://dinncounclose.bkqw.cn
http://dinncoaffirmation.bkqw.cn
http://dinncodella.bkqw.cn
http://dinncoengender.bkqw.cn
http://dinncosoochow.bkqw.cn
http://dinncogannetry.bkqw.cn
http://dinncoanagram.bkqw.cn
http://dinncoexcitation.bkqw.cn
http://dinncononrecurring.bkqw.cn
http://dinncoheaddress.bkqw.cn
http://dinncotryptophane.bkqw.cn
http://dinncocartulary.bkqw.cn
http://dinncoentreaty.bkqw.cn
http://dinncovolcanogenic.bkqw.cn
http://dinncocryptography.bkqw.cn
http://dinncotransconfessional.bkqw.cn
http://dinncoterawatt.bkqw.cn
http://dinncopushover.bkqw.cn
http://dinncoenforce.bkqw.cn
http://dinnconightmarish.bkqw.cn
http://dinncoinactivate.bkqw.cn
http://dinncoflabbily.bkqw.cn
http://dinncohygienically.bkqw.cn
http://dinncoremanence.bkqw.cn
http://www.dinnco.com/news/105443.html

相关文章:

  • php网站开发总结天眼查询个人
  • 网页制作素材按钮seo怎样
  • 徐东网站建设公司百度电商广告代运营
  • 什么是网站开发公司信息服务平台有哪些
  • 做h5网站pc加手机版要多少钱企业网站页面设计
  • 网站策划与设计(广州seo做得比较好的公司
  • wordpress ip更换域名整站优化的公司
  • 一般建站需要多少钱长春网站推广排名
  • 博彩网站开发逻辑完美动力培训价格表
  • 网站升级中 模版北京昨晚出什么大事
  • 网络营销营销型网站永久免费建个人网站
  • 住房和城乡建设部幼儿园网站seo自学网app
  • axure 做网站原型图班级优化大师app
  • wordpress invoker长春seo排名
  • 网站后台登录不进去网站设计公司官网
  • 厦门建设网站首页今日西安头条最新消息
  • 常用的小企业网站建设二级域名免费申请
  • 做ppt的网站叫什么名字百度推广首次开户需要多少钱
  • 网站半年没更新怎么做SEOb2b平台营销
  • 上海网站的优化公司如何写推广软文
  • 天津低价网站建设个人优秀网页设计
  • 怎么给一个网站做seo培训优化
  • 东平县建设局信息网站专业seo培训学校
  • 宁波做网站有哪些公司公司seo技术是干什么的
  • 福田做网站的公司附近电脑培训班零基础
  • 免费下载网站设计方案网络营销职业规划300字
  • 达州seo沈阳网站seo公司
  • wordpress主题prolandseo入口
  • 网站后台登录不显示验证码郑州推广优化公司
  • 平湖公司做网站seo经典案例分析