摘要: ① 用户登录instance 使用AMI 创建 instance 连接 instance: 输入Ipv4 Ip + auth (private key file)命令:aws s3 ls 用来list bucket(但此时缺少credentials) => 1. 创建用户 IAM -> add us 阅读全文
posted @ 2024-03-04 21:40 PEAR2020 阅读(4) 评论(0) 推荐(0) 编辑
摘要: springboot 原理 ⅤⅠⅠ auto config 1.1 Condition: 选择性的创建bean 注入一个Bean:@Configuration Class 下@Bean 方法返回一个User,就获得name = "user"的Bean@Conditional(实现类.class) = 阅读全文
posted @ 2024-03-03 19:46 PEAR2020 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Ⅰ.Overview spring Boot - 构建项目 buildSpring Cloud - 数据通信 coordinateSpring 缺点:1 cumbersome config2 cumbersome dependencyspringBoot: 提供了一种快速使用Spring的方式1. 阅读全文
posted @ 2024-03-02 23:14 PEAR2020 阅读(2) 评论(0) 推荐(0) 编辑
摘要: java程序编译后会生成字节码文件,就是.class文件final并不能修饰抽象类final修饰的类可以被重载但不能被重写线程的启动方式只能通过start这种方式启动才能真正的实现多线程的效果,如果是手动调用run方法和普通方法调用没有区别线程安全的map:HashTable,Synchronize 阅读全文
posted @ 2024-02-29 21:51 PEAR2020 阅读(2) 评论(0) 推荐(0) 编辑
摘要: problem: jenkins用户配置git repo连接失败 solution: Jenkins runs as another user, not as your ordinary login. Log on as jenkins su jenkins (you may first have 阅读全文
posted @ 2023-12-12 15:05 PEAR2020 阅读(8) 评论(0) 推荐(0) 编辑
摘要: distributed tracing 1. for debugging and 分析接口性能 when dependency relationships are complex 2. 技术对比 3. jaeger installation docker run \ --rm \ --name ja 阅读全文
posted @ 2023-12-06 14:01 PEAR2020 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1.实现map requirement: 实现阻塞读且并发安全的map GO⾥⾯MAP如何实现key不存在 get操作等待 直到key存在或者超时,保证并发安全 implementation: package main import ( "fmt" "sync" "time" ) type sp i 阅读全文
posted @ 2023-12-05 16:57 PEAR2020 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 三次握手 第一次A->B: SYN=1; seq = x (表示A到B的连接请求) (表示A发送从序号x开始的报文)第二次B<-A: SYN=1; seq = y; ACK=1; ack = x+1(表示B到A的连接请求)(表示B发送从序号y开始的报文)(ack有效)(ack:已经接受到A序号为x的 阅读全文
posted @ 2023-11-30 21:29 PEAR2020 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 路由器分配192.168网段给本地局域网 路由器ip是对外的外网ip 如何本地调试OSS? 1. 通过ECS 2. Intranet penetration: -续断,花生壳 阅读全文
posted @ 2023-11-25 13:57 PEAR2020 阅读(6) 评论(1) 推荐(0) 编辑
摘要: Aliyun OSS 1. create bucket2. create sub-account that has granted permissions3. use accesskey and secret browser -> transfer directly -> oss callback- 阅读全文
posted @ 2023-11-25 12:05 PEAR2020 阅读(3) 评论(0) 推荐(0) 编辑