Skip to content

Commit 02fb9f6

Browse files
author
公众号:Rong姐姐好可爱
authored
Merge pull request #77 from chufan443/docs/updae
2 parents 0536166 + f5ea8de commit 02fb9f6

File tree

11 files changed

+43
-14
lines changed

11 files changed

+43
-14
lines changed

docs/manuscripts/server-end/database/mongo/install.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
> 在mac本地部署MongoDB数据库,用来进行yapi功能测试
66
77

8-
### 部署命令
8+
## 部署命令
99

1010
```bash
1111
##
@@ -19,7 +19,7 @@ docker run -d --name=mongo-master --restart=always -p 27017:27017 -v /Users/Shar
1919
- 数据持久化于`/Users/Shared/web-project/mongo`下,账号:root,密码:123456
2020

2121

22-
### 创建用户
22+
## 创建用户
2323

2424
```bash
2525
## 登录
@@ -50,7 +50,7 @@ db.dropUser(<user_name>) 删除某个用户,接受字符串参数
5050

5151
用navicat连接时,注意验证数据库应该选择管理员所在的数据名,即admin数据库
5252

53-
### 关闭指定端口
53+
## 关闭指定端口
5454

5555
```bash
5656
## 查询pid
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const mongoSideBar = [
2+
{
3+
text: '基础安装',
4+
link: 'install.md'
5+
}
6+
]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
# MongoDB
3+

docs/manuscripts/server-end/database/mysql/Readme.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
# 安装
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const mySqlSideBar = [
2+
{
3+
text: '基础安装',
4+
link: 'install.md'
5+
}
6+
]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
# MySQL

docs/manuscripts/server-end/database/Readme.md renamed to docs/manuscripts/server-end/database/readme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ permalink: /manuscripts/server-end/database
55

66
# 数据库
77

8-
> todo
8+
9+
```mindmap
10+
root(数据库)
11+
MySQL
12+
MongoDB
13+
Redis
14+
```

docs/manuscripts/server-end/database/redis/use-rule.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,10 @@ HASH_SLOT = CRC16(key) mod 16384
102102

103103

104104

105-
## 参考资料
106-
107-
- <https://blog.csdn.net/qq_36042938/article/details/108845426>
108105

109106

110107

111-
# 使用规范
108+
## 使用规范
112109

113110
在项目中,redis属于高频使用,遇到了各种各样的redis问题,针对自身情况梳理了一个redis使用规范。
114111

@@ -181,3 +178,6 @@ HASH_SLOT = CRC16(key) mod 16384
181178
>redis是单线程处理,在线上Key数量较多时,操作效率极低【时间复杂度为O(N)】,该命令一旦执行会严重阻塞线上其它命令的正常请求,而且在高QPS情况下会直接造成redis服务崩溃!如果有类似需求,可以使用scan命令代替。
182179
183180

181+
## 参考资料
182+
183+
- <https://blog.csdn.net/qq_36042938/article/details/108845426>

docs/manuscripts/server-end/server-end.sidebar.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { redisSidebar } from './database/redis/redis.sidebar'
2+
import { mySqlSideBar } from './database/mysql/mysql.sidebar'
3+
import { mongoSideBar } from './database/mongo/mongo.sidebar'
24

35
export const serverEndSidebar = [{
46
text: 'Node.js',
@@ -124,11 +126,15 @@ export const serverEndSidebar = [{
124126
},
125127
{
126128
text: 'MySQL',
127-
link: 'mysql'
129+
prefix: 'mysql',
130+
collapsible: true,
131+
children: mySqlSideBar
128132
},
129133
{
130134
text: 'MongoDB',
131-
link: 'mongo.md'
135+
prefix: 'mongo',
136+
collapsible: true,
137+
children: mongoSideBar
132138
}
133139
]
134140
},

docs/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ features:
3737

3838

3939

40-
<BiliBili bvid="BV1rd4y1V7tB" />
40+
[//]: # (<BiliBili bvid="BV1rd4y1V7tB" />)
4141

4242
[//]: # (<XiGua id="7191010629048716605" />)
4343

0 commit comments

Comments
 (0)