Skip to content

Commit

Permalink
add: docker栏文章+主页面图标添加+springcloud基础1.0+神领&秒杀1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-qtp committed Dec 30, 2024
1 parent 0dba924 commit e6ee8b3
Show file tree
Hide file tree
Showing 53 changed files with 6,420 additions and 7,006 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<p/>
<h1>『Qtp-稳重不爱吃肉』</h1>
</div>
:rocket: 无限进步,影视飓风的座右铭!也是我的!
:rocket: 无限进步,影视飓风的座右铭!
:rocket: 做技术的应该多写点技术文章,输出的同时倒逼输入!

:fire: :fire: :fire: 推荐 | 在线阅读:<https://tim-qtp.github.io/blog/>
Expand Down
80 changes: 72 additions & 8 deletions src/.vuepress/sidebar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const zhSidebar = sidebar({
// },
{
icon: "framework",
text: "、框架",
text: "、框架",
collapsible: true,
prefix: "framework/",
children: [
Expand All @@ -130,6 +130,13 @@ export const zhSidebar = sidebar({
children: "structure",
collapsible: true,
},
{
icon: "springcloud",
text: "SpringCloud",
prefix: "springcloud/",
children: "structure",
collapsible: true,
},
{
icon: "mybatis",
text: "MyBatis",
Expand All @@ -141,10 +148,17 @@ export const zhSidebar = sidebar({
},
{
icon: "microservices",
text: "、微服务中间件",
text: "、微服务中间件",
collapsible: true,
prefix: "microservices/",
children: [
{
icon: "docker",
text: "Docker",
prefix: "docker/",
children: "structure",
collapsible: true,
},
{
icon: "nacos",
text: "Nacos",
Expand Down Expand Up @@ -186,19 +200,19 @@ export const zhSidebar = sidebar({
prefix: "hystrix/",
children: "structure",
collapsible: true,
},
}
]
},
{
icon: "interview",
text: "、面试",
text: "、面试",
prefix: "interview/",
children: "structure",
collapsible: true,
},
{
icon: "essay",
text: "、项目随笔",
text: "、项目随笔",
prefix: "projectessay/",
collapsible: true,
children: [
Expand All @@ -209,6 +223,56 @@ export const zhSidebar = sidebar({
children: "structure",
collapsible: true,
},
{
icon: "project3",
text: "实战项目",
prefix: "practicalProjects/",
collapsible: true,
children: [
{
icon: "shortlink",
text: "短链接",
prefix: "shortlink",
children: "structure",
collapsible: true,
},
{
icon: "imageLibrary",
text: "智能图库",
prefix: "imageLibrary",
children: "structure",
collapsible: true,
},
{
icon: "logistics",
text: "神领物流",
prefix: "logistics",
children: "structure",
collapsible: true,
},
{
icon: "oj",
text: "刷题OJ平台",
prefix: "oj",
children: "structure",
collapsible: true,
},
{
icon: "onlineEducation",
text: "学成在线",
prefix: "onlineEducation",
children: "structure",
collapsible: true,
},
{
icon: "flashSale",
text: "秒杀系统",
prefix: "flashSale",
children: "structure",
collapsible: true,
}
],
},
{
icon: "bug",
text: "bug修复",
Expand All @@ -234,16 +298,16 @@ export const zhSidebar = sidebar({
},
{
icon: "github",
text: "、开源推荐",
text: "、开源推荐",
prefix: "opensource/",
children: "structure",
collapsible: true,
},
],
"/life/": [
{
icon: "vscode",
text: "二、神龟",
icon: "java",
text: "一、碎嘴",
prefix: "life",
children: "structure",
collapsible: true,
Expand Down
2 changes: 1 addition & 1 deletion src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default hopeTheme({
},

// iconAssets: 'iconfont',
iconAssets: '//at.alicdn.com/t/c/font_4791007_2cui404f6up.css',
iconAssets: '//at.alicdn.com/t/c/font_4791007_vi61w6orfsf.css',


logo: '/logo.svg',
Expand Down
75 changes: 74 additions & 1 deletion src/Java/jvm/jvm basis.md
Original file line number Diff line number Diff line change
Expand Up @@ -1117,4 +1117,77 @@ OSGi还使用类加载器实现了热部署的功能。热部署指的是在服

![类加载器的作用](https://qtp-1324720525.cos.ap-shanghai.myqcloud.com/blog/image-20241225212600327.png)

![双亲委派](https://qtp-1324720525.cos.ap-shanghai.myqcloud.com/blog/image-20241225212759021.png)
![双亲委派](https://qtp-1324720525.cos.ap-shanghai.myqcloud.com/blog/image-20241225212759021.png)



## 运行时数据区?

![image61](https://qtp-1324720525.cos.ap-shanghai.myqcloud.com/blog/image61.png)

#### **程序计数器**

也叫PC寄存器,**每个线程**会通过程序计数器记录当前要执行的的字节码指令的地址。

实现分支,跳转,异常等逻辑。

在多线程执行情况下,Java虚拟机需要通过程序计数器记录CPU切换前解释执行到那一句指令并继续解释运行。

![image60](https://qtp-1324720525.cos.ap-shanghai.myqcloud.com/blog/image60.png)

#### **程序计数器会出现内存溢出吗?**

不会,程序计数器只会保存==固定长度==的内存地址。

#### **Java虚拟机栈**

虚拟机栈中保存在java中实现的方法,每次执行方法,都会往栈里去保存。先进后出。

```java
package chapter03.frame;

/**
* 栈帧测试1
*/
public class FrameDemo {
public static void main(String[] args) {
A();
}

public static void A() {
System.out.println("A执行了...");
B();
}

public static void B() {
System.out.println("B执行了...");
C();
}

public static void C() {
System.out.println("C执行了...");
throw new RuntimeException("测试");
}
}
```

打上断点debug之后会出现栈帧内容:

<img src="https://qtp-1324720525.cos.ap-shanghai.myqcloud.com/blog/image62.png" style="zoom:50%;" />

在最后一个方法后抛出异常,也可以观测到:

![](https://qtp-1324720525.cos.ap-shanghai.myqcloud.com/blog/image-20241226152900536.png)













21 changes: 21 additions & 0 deletions src/Java/redis/How to register Redis as a system service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
order: 1
author:
title: "如何把Redis注册为系统服务?"
category:
- Redis

---

```sh
# 安装为服务
redis-server --service-install redis.windows.conf
# 启动服务
redis-server --service-start
# 停止服务
redis-server --service-stop
# 卸载服务
redis-server --service-uninstall
```


Loading

0 comments on commit e6ee8b3

Please sign in to comment.