摘要: 配置文件:/etc/sysctl.conf fs.file-max = 6815744 表示系统级别文件句柄数 net.ipv4.tcp_fin_timeout=15 表示如果套接字由本端要求关闭,这个参数决定了它保持在FIN-WAIT-2状态的时间。 net.core.netdev_max_bac 阅读全文
posted @ 2023-02-08 09:39 Steven.Chow 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 第一步:预安装 yum localinstall -y /root/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm 这一步会自动做好如下工作: 创建用户和组 设置 /etc/sysctl.conf 第二步:安装包依赖 yum install - 阅读全文
posted @ 2023-01-06 13:40 Steven.Chow 阅读(1509) 评论(0) 推荐(0) 编辑
摘要: 一、Curator 简介 Apache Curator 是一个比较完善的 ZooKeeper 客户端框架,通过封装的一套高级 API 简化了 ZooKeeper 的操作。通过查看官方文档,可以发现 Curator 主要解决了三类问题: 封装 ZooKeeper client 与 ZooKeeper 阅读全文
posted @ 2023-01-03 16:37 Steven.Chow 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-12-09 13:43 Steven.Chow 阅读(24) 评论(0) 推荐(0) 编辑
摘要: ThreadLocal 是什么从名字我们就可以看到 ThreadLocal 叫做本地线程变量,意思是说,ThreadLocal 中填充的的是当前线程的变量,该变量对其他线程而言是封闭且隔离的,ThreadLocal 为变量在每个线程中创建了一个副本,这样每个线程都可以访问自己内部的副本变量。 从字面 阅读全文
posted @ 2022-12-09 10:09 Steven.Chow 阅读(126) 评论(0) 推荐(0) 编辑
摘要: import org.springframework.cglib.proxy.MethodInterceptor; import org.springframework.cglib.proxy.MethodProxy; import java.lang.reflect.Method; public 阅读全文
posted @ 2022-12-09 08:12 Steven.Chow 阅读(995) 评论(0) 推荐(0) 编辑
摘要: 概述 什么是动态代理 使用 JDK 的反射机制,创建对象的能力, 创建的是代理类的对象,不用自己创建类文件,不用写 Java 文件。 动态:在程序执行时,调用 JDK 提供的方法才能创建代理类的对象。 JDK 动态代理,必须有接口,目标类必须实现接口,没有接口时,需要使用 cglib 动态代理。 动 阅读全文
posted @ 2022-12-07 15:40 Steven.Chow 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 核心流程 MyBatis 应用程序通过 SqlSessionFactoryBuilder 从 mybatis-config.xml 配置文件中构建出 SqlSessionFactory,然后 SqlSessionFactory 的实例直接开启一个 SqlSession,再通过 SqlSession 阅读全文
posted @ 2022-12-05 15:37 Steven.Chow 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1. 新版 SpringBoot 好像不会加载 bootstrap.properties 文件,导致 apollo.bootstrap.eagerLoad.enabled=true 失效,@ConditionalOnProperty 工作不正常。 阅读全文
posted @ 2022-12-03 14:35 Steven.Chow 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 创建账号: useradd -d /home/rcluster -g ai rclusterecho "123" | passwd --stdin rcluster 编译与安装: tar -zxvf redis-5.0.14.tar.gz cd redis-5.0.14 make make inst 阅读全文
posted @ 2022-11-16 17:44 Steven.Chow 阅读(66) 评论(0) 推荐(0) 编辑