10 2023 档案
摘要:https://www.cnblogs.com/zmh520/p/17758730.html 操作场景 prometheus 监控nginx有两种方式。一种是通过nginx_exporter监控,需要开启nginx_stub_status,主要是nginx自身的status信息,metrics数据现
阅读全文
摘要:这篇博客更加详细:https://www.cnblogs.com/zmh520/p/17758730.html 1、nginx安装 1.1、创建nginx目录 mkdir ~/docker/monitor_alarm/docker-server/nginx/conf.d -p cd ~/docker
阅读全文
摘要:1、环境准备 1.1、安装docker和docker-compose环境 https://www.cnblogs.com/hg-super-man/p/10908220.html 2、安装node_exporter https://prometheus.io/download/ 2.1 二进制安装n
阅读全文
摘要:1、Docker安装Prometheus 1.1、安装docker和docker-compose环境 https://www.cnblogs.com/hg-super-man/p/10908220.html 1.2、安装 拷贝配置 https://gitee.com/xiaohai008/docke
阅读全文
摘要:1、什么是死锁? 死锁是一组互相竞争资源的线程,因为互相等待,导致的永久阻塞。 2、产生死锁的原因? 互斥:共享资源x和y只能被一个线程占用 占有且等待:线程t1已经取得资源x,在等待资源y的时候不释放资源x 不可抢占:其他线程不能强行抢占线程t1占有的资源 循环等待:线程t1等待线程t2占有的资源
阅读全文
摘要:1、启动Kafka # 通过zookepper ./bin/zookeeper-server-start.sh config/zookeeper.properties # 通过kRaft ./bin/kafka-server-start.sh ./config/server.properties &
阅读全文