上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: 报错Connection to database failed: SCRAM authentication requires libpq version 10 or above的解决方案 1、下载安装包 https://gitee.com/xiaohai008/postgresql10-devel 阅读全文
posted @ 2023-11-20 14:31 尐海爸爸 阅读(449) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/zmh520/p/17758730.html 操作场景 prometheus 监控nginx有两种方式。一种是通过nginx_exporter监控,需要开启nginx_stub_status,主要是nginx自身的status信息,metrics数据现 阅读全文
posted @ 2023-10-25 16:55 尐海爸爸 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 这篇博客更加详细: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 阅读全文
posted @ 2023-10-24 22:50 尐海爸爸 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2023-10-24 14:31 尐海爸爸 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2023-10-23 23:12 尐海爸爸 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1、什么是死锁? 死锁是一组互相竞争资源的线程,因为互相等待,导致的永久阻塞。 2、产生死锁的原因? 互斥:共享资源x和y只能被一个线程占用 占有且等待:线程t1已经取得资源x,在等待资源y的时候不释放资源x 不可抢占:其他线程不能强行抢占线程t1占有的资源 循环等待:线程t1等待线程t2占有的资源 阅读全文
posted @ 2023-10-10 09:03 尐海爸爸 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1、启动Kafka # 通过zookepper ./bin/zookeeper-server-start.sh config/zookeeper.properties # 通过kRaft ./bin/kafka-server-start.sh ./config/server.properties & 阅读全文
posted @ 2023-10-07 11:27 尐海爸爸 阅读(32) 评论(0) 推荐(0) 编辑
摘要: nacos注册服务时网卡选择错误的问题解决方案 如果本地或者服务器有安装虚拟机或者虚拟网卡,会导致应用注册nacos注册中心,导致ip错误的问题,解决方案就是在应用中增加对应配置 spring: cloud: inetutils: preferredNetworks: - 192.168 阅读全文
posted @ 2023-09-25 09:37 尐海爸爸 阅读(171) 评论(0) 推荐(0) 编辑
摘要: java web应用远程debug 1、在启动参数中加入下面的参数 address对应的端口可以修改 -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=15555 2、添加远程服务 3、填充服务名(任意)、远程服务的ip 阅读全文
posted @ 2023-09-25 09:33 尐海爸爸 阅读(14) 评论(0) 推荐(0) 编辑
摘要: sleep 方法和 wait 方法都是用来将线程进入休眠状态的,并且 sleep 和 wait 方法都可以响应 interrupt 中断,也就是线程在休眠的过程中,如果收到中断信号,都可以进行响应并中断,且都可以抛出 InterruptedException 异常,那 sleep 和 wait 有什 阅读全文
posted @ 2023-09-20 13:50 尐海爸爸 阅读(92) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页