会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
尐海爸爸
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
···
14
下一页
2023年11月20日
sysbench 安装 postgres 测试环境( Connection to database failed: SCRAM authentication requires libpq version 10 or above)
摘要: 报错Connection to database failed: SCRAM authentication requires libpq version 10 or above的解决方案 1、下载安装包 https://gitee.com/xiaohai008/postgresql10-devel
阅读全文
posted @ 2023-11-20 14:30 尐海爸爸
阅读(1093)
评论(0)
推荐(0)
2023年10月25日
监控nginx-2
摘要: https://www.cnblogs.com/zmh520/p/17758730.html 操作场景 prometheus 监控nginx有两种方式。一种是通过nginx_exporter监控,需要开启nginx_stub_status,主要是nginx自身的status信息,metrics数据现
阅读全文
posted @ 2023-10-25 16:55 尐海爸爸
阅读(299)
评论(0)
推荐(0)
2023年10月24日
监控nginx
摘要: 这篇博客更加详细: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 尐海爸爸
阅读(65)
评论(0)
推荐(0)
linux服务器常用监控指标
摘要: 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 尐海爸爸
阅读(244)
评论(0)
推荐(0)
2023年10月23日
Linux服务器系统监控
摘要: 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 尐海爸爸
阅读(82)
评论(0)
推荐(0)
2023年10月10日
死锁
摘要: 1、什么是死锁? 死锁是一组互相竞争资源的线程,因为互相等待,导致的永久阻塞。 2、产生死锁的原因? 互斥:共享资源x和y只能被一个线程占用 占有且等待:线程t1已经取得资源x,在等待资源y的时候不释放资源x 不可抢占:其他线程不能强行抢占线程t1占有的资源 循环等待:线程t1等待线程t2占有的资源
阅读全文
posted @ 2023-10-10 09:03 尐海爸爸
阅读(37)
评论(0)
推荐(0)
2023年10月7日
kafka常用命令
摘要: 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 尐海爸爸
阅读(55)
评论(0)
推荐(0)
2023年9月25日
nacos注册服务时网卡选择错误的问题解决方案
摘要: nacos注册服务时网卡选择错误的问题解决方案 如果本地或者服务器有安装虚拟机或者虚拟网卡,会导致应用注册nacos注册中心,导致ip错误的问题,解决方案就是在应用中增加对应配置 spring: cloud: inetutils: preferredNetworks: - 192.168
阅读全文
posted @ 2023-09-25 09:36 尐海爸爸
阅读(410)
评论(0)
推荐(0)
java web应用远程debug
摘要: java web应用远程debug 1、在启动参数中加入下面的参数 address对应的端口可以修改 -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=15555 2、添加远程服务 3、填充服务名(任意)、远程服务的ip
阅读全文
posted @ 2023-09-25 09:32 尐海爸爸
阅读(51)
评论(0)
推荐(0)
2023年9月20日
sleep和wait有什么区别?
摘要: sleep 方法和 wait 方法都是用来将线程进入休眠状态的,并且 sleep 和 wait 方法都可以响应 interrupt 中断,也就是线程在休眠的过程中,如果收到中断信号,都可以进行响应并中断,且都可以抛出 InterruptedException 异常,那 sleep 和 wait 有什
阅读全文
posted @ 2023-09-20 13:50 尐海爸爸
阅读(498)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
14
下一页
公告