File tree Expand file tree Collapse file tree 11 files changed +43
-14
lines changed
Expand file tree Collapse file tree 11 files changed +43
-14
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ export const mongoSideBar = [
2+ {
3+ text : '基础安装' ,
4+ link : 'install.md'
5+ }
6+ ]
Original file line number Diff line number Diff line change 1+
2+ # MongoDB
3+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+
2+ # 安装
Original file line number Diff line number Diff line change 1+ export const mySqlSideBar = [
2+ {
3+ text : '基础安装' ,
4+ link : 'install.md'
5+ }
6+ ]
Original file line number Diff line number Diff line change 1+
2+
3+ # MySQL
Original file line number Diff line number Diff 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+ ```
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 11import { redisSidebar } from './database/redis/redis.sidebar'
2+ import { mySqlSideBar } from './database/mysql/mysql.sidebar'
3+ import { mongoSideBar } from './database/mongo/mongo.sidebar'
24
35export 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} ,
You can’t perform that action at this time.
0 commit comments