GeezerVison is showing github.com — add mac remote ubuntu · wengAlan/PassJava-Learning@7f09c9c
File tree
Expand file treeCollapse file tree
Open diff view settings
13.SpringCloudNetflix源码解析/03.Feign远程调用
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +16Lines changed: 16 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +你好,很高兴认识你,可以叫我:悟空/大师兄。 |
| 2 | + |
| 3 | +我是 #公众号:悟空聊架构的号主 |
| 4 | + |
| 5 | +目前主要研究 Java、分布式、微服务架构方向。 |
| 6 | + |
| 7 | +可以提供: |
| 8 | + |
| 9 | +- 求职/面试指导/简历修改 |
| 10 | +- 邀请加入我的技术讨论群(微信交流群) |
| 11 | +- 一起学习打卡(知识星球https://t.zsxq.com/urrZ7Aq) |
| 12 | +- 个人技术网站持续更新( http://www.passjava.cn) |
| 13 | +- Spring Cloud 开源学习项目-技术支持 |
| 14 | + |
| 15 | + |
| 16 | + |
Collapse file
Copy file name to clipboard +53Lines changed: 53 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +## Mac 常用远程连接 ubuntu 工具对比 |
| 2 | + |
| 3 | +(1)JumpDesktop AppStore 233块,网上有破解版。 |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +(2)VNC Viewer AppStore 下架了,网上有安装包。 |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +(3)MicrosoftRemoteDesktop AppStore 下架了,网上有安装包。 |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +效果最好的还是用 MicrosoftRemoteDesktop 连接 Windows 机器,然后用 Windows 机器远程 ubuntu。 |
| 16 | + |
| 17 | +VNC 和 JumpDeskTop 及时把画面质量降到 Low,鼠标还是有很大的延迟。 |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +## 问题 |
| 22 | + |
| 23 | +### 远程连接 Ubuntu 后,ubuntu 桌面太小了。 |
| 24 | + |
| 25 | +设置 ubuntu 分辨率大小 |
| 26 | + |
| 27 | +> xrandr |
| 28 | +
|
| 29 | +xrandr 提示 DP-1 已经 connected(连接),分辨率为 1440\*900,我想调整为 1920\*1080 分辨率。 |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +直接设置分辨率 |
| 34 | + |
| 35 | +> xrandr -s 1920x1080_60.00 |
| 36 | +
|
| 37 | +提示错误: |
| 38 | + |
| 39 | +```SH |
| 40 | +Size 1920x1080 not found in available modes |
| 41 | +``` |
| 42 | + |
| 43 | +添加分辨率: |
| 44 | + |
| 45 | +> xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync |
| 46 | +
|
| 47 | +添加模式 |
| 48 | + |
| 49 | +> xrandr --addmode DP-1 "1920x1080_60.00" |
| 50 | +
|
| 51 | + |
| 52 | + |
| 53 | +分辨率会自动变为 1920*1680。 |
Collapse file
Copy file name to clipboard +32Lines changed: 32 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +来自粥左罗的专栏 |
| 2 | + |
| 3 | +## 公众号编辑需要哪些工作规范 |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +### 1.内容提供 |
| 8 | + |
| 9 | +第一,建立内容提供机制。 |
| 10 | + |
| 11 | +第二,做好内容规划。 |
| 12 | + |
| 13 | +第三,选题定位。 |
| 14 | + |
| 15 | +### 2.内容运营 |
| 16 | + |
| 17 | +开头结尾优化、配图、排版、封面、定时推送、精选留言、推荐话术、多平台同步、请大v转载(可考虑付费)。 |
| 18 | + |
| 19 | +### 3.工作复盘 |
| 20 | + |
| 21 | +数据复盘、团队共享复盘反馈表、 |
| 22 | + |
| 23 | +### 4.阅读学习 |
| 24 | + |
| 25 | +专业领域学习、新媒体学习。 |
| 26 | + |
| 27 | +主题学习、制定计划、输出反馈。 |
| 28 | + |
| 29 | +制定计划:凡事预则立,不立则费。 |
| 30 | + |
| 31 | +输出反馈:强制自己做笔记,写点心得,内化成自己的东西。 |
| 32 | + |
Collapse file
Copy file name to clipboard +36Lines changed: 36 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +之前已经把 Eureka、Ribbon 集成到我的小商城系统了,今天把 OpenFeign 远程调用组件集成了。 |
| 2 | + |
| 3 | +比较有趣的一点是 Feign 和 OpenFeign 这两个小家伙,这里做个总结: |
| 4 | + |
| 5 | +Feign 最早是由 Netflix 公司进行维护的,后来 Netflix 不再对其进行维护,最终 Feign 由社区进行维护,更名为 OpenFeign。 |
| 6 | + |
| 7 | +Feign是 Springcloud组件中的一个轻量级 Restful的 HTTP 服务客户端,Feign 内置了 Ribbon,用来做客户端负载均衡,去调用服务注册中心的服务。Feign 的使用方式是:使用 Feign 的注解定义接口,调用这个接口,就可以调用服务注册中心的服务. |
| 8 | + |
| 9 | +``` |
| 10 | + <dependency> |
| 11 | + <groupId>org.springframework.cloud</groupId> |
| 12 | + <artifactId>spring-cloud-starter-feign</artifactId> |
| 13 | + </dependency> |
| 14 | +``` |
| 15 | + |
| 16 | +OpenFeign 是 Springcloud 在 F eign的基础上支持了 SpringMVC 的注解,如 @RequestMapping 等等。OpenFeign 的 @FeignClient 可以解析 SpringMVC 的 @RequestMapping 注解下的接口,并通过动态代理的方式产生实现类,实现类中做负载均衡并调用其他服务。 |
| 17 | + |
| 18 | +``` |
| 19 | +<dependency> |
| 20 | + <groupId>org.springframework.cloud</groupId> |
| 21 | + <artifactId>spring-cloud-starter-openfeign</artifactId> |
| 22 | +</dependency> |
| 23 | +``` |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +遇到报错:Unregistering application *** with eureka with status DOWN |
| 28 | + |
| 29 | +在出错项目的pom依赖中添加如下依赖: |
| 30 | + |
| 31 | +<dependency> |
| 32 | + <groupId>org.springframework.boot</groupId> |
| 33 | + <artifactId>spring-boot-starter-web</artifactId> |
| 34 | +</dependency> |
| 35 | + |
| 36 | +https://blog.csdn.net/weixin_45763431/article/details/114013665 |
Collapse file
Copy file name to clipboardExpand all lines: docs/13.SpringCloudNetflix源码解析/03.Feign远程调用/02.Feign架构剖析.md -12Lines changed: 0 additions & 12 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 |
|
5 | 5 |
|
6 | 6 |
|
7 | | -Feign 集成了 Ribbon 没有? |
8 | 7 |
|
9 | 8 |
|
10 | | - |
11 | | -Unregistering application *** with eureka with status DOWN |
12 | | - |
13 | | -在出错项目的pom依赖中添加如下依赖: |
14 | | - |
15 | | -<dependency> |
16 | | - <groupId>org.springframework.boot</groupId> |
17 | | - <artifactId>spring-boot-starter-web</artifactId> |
18 | | -</dependency> |
19 | | - |
20 | | -https://blog.csdn.net/weixin_45763431/article/details/114013665 |
Collapse file
Copy file name to clipboardExpand all lines: docs/88.Interview/03.Database/MySQL1.md +9Lines changed: 9 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -468,6 +468,15 @@ RR 的可重复读怎么做到的? |
468 | 468 |
|
469 | 469 | 在生产过程中,经常会遇到因为SQL语句导致的性能瓶颈问题,这时候就需要我们去优化SQL的执行效率;EXPLAIN语句的各个输出项指标可以帮助我们有针对性的提升查询语句的性能。 |
470 | 470 |
|
| 471 | +**const**: 根据主键、普通唯一索引列等值匹配查询(is null除外),这种查询是很快的,查询速率认为是常数级别的,定义为const。 |
| 472 | +**ref** : 根据普通索引等值匹配,或is null。(前面说的普通唯一索引列查询时 is null也是这种场景)。这种方式需要先根据普通索引匹配到多个主键,然后根据主键进行回表。 |
| 473 | +**range**:根据主键索引或普通索引(包含唯一索引)进行范围查找 |
| 474 | +**index**:索引覆盖,你查询的列刚好是索引列,即使查询条件是联合索引的非最左索引列,查询的条件是联合索引中的列,也可能会走索引覆盖 |
| 475 | +**ALL**: 全表扫描,直接扫描主键索引,这种访问方式称为all。 |
| 476 | +**index merge** : 除此之外,还会有index merge(索引合并),针对一些and、or的操作,单纯的回表可能速度会慢一些,如果先将使用到的索引先进行求 交集、并集之后在进行回表,会更加高效。 |
| 477 | + |
| 478 | + |
| 479 | + |
471 | 480 | 执行计划重要指标解释(id主键,name,age 联合索引, a 普通索引,b普通列): |
472 | 481 |
|
473 | 482 | **type 字段** =>> |
|
Collapse file
Copy file name to clipboard +8Lines changed: 8 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +https://blog.csdn.net/weixin_37968613/article/details/114652178 |
| 2 | + |
| 3 | +**const**: 根据主键、普通唯一索引列等值匹配查询(is null除外),这种查询是很快的,查询速率认为是常数级别的,定义为const。 |
| 4 | +**ref** : 根据普通索引等值匹配,或is null。(前面说的普通唯一索引列查询时 is null也是这种场景)。这种方式需要先根据普通索引匹配到多个主键,然后根据主键进行回表。 |
| 5 | +**range**:根据主键索引或普通索引(包含唯一索引)进行范围查找 |
| 6 | +**index**:索引覆盖,你查询的列刚好是索引列,即使查询条件是联合索引的非最左索引列,查询的条件是联合索引中的列,也可能会走索引覆盖 |
| 7 | +**ALL**: 全表扫描,直接扫描主键索引,这种访问方式称为all。 |
| 8 | +**index merge** : 除此之外,还会有index merge(索引合并),针对一些and、or的操作,单纯的回表可能速度会慢一些,如果先将使用到的索引先进行求 交集、并集之后在进行回表,会更加高效。 |