|
10 months ago | |
---|---|---|
src | 10 months ago | |
test | 11 months ago | |
.editorconfig | 11 months ago | |
.eslintrc.json | 11 months ago | |
.gitignore | 11 months ago | |
.prettierrc.js | 11 months ago | |
README.md | 10 months ago | |
README.zh-CN.md | 11 months ago | |
bootstrap.js | 11 months ago | |
ecosystem.config.js | 11 months ago | |
jest.config.js | 11 months ago | |
package-lock.json | 11 months ago | |
package.json | 10 months ago | |
pnpm-lock.yaml | 10 months ago | |
tsconfig.json | 11 months ago |
checkPermissionCode |注解名|类型|说明| |:-:|:-:|:-:| |roleCode|string|该接口权限所需标识 ${路由名称}.${功能}|
dataRecord |注解名|类型|说明| |:-:|:-:|:-:| |before|string|获取原数据的函数名;该service下的函数名,纯自定义| |after|string|获取新数据的函数名;该service下的函数名,纯自定义|
replication:
replSetName: rs0
rs.initiate( rsconf )
* 3.重置副本集
1.停止所有实例,使用非主从复制模式启动,注释 replication 设置 2.sh进入每个数据库后删除local库 use local db.dropDatabase() 3.停止所有实例,使用主从复制模式启动,打开注释 4.初始化配置,sh连接1个库 rs.initate() 不输入参数 conf=rs.conf() conf.members[0].host='xxx.xxx.xxx.xxx:xxx' rs.reconfig(conf) rs.status() 查看配置 5.添加从节点 从节点: rs.add({ _id: x, host: 'xxx.xxx.xxx.xxx:xxx' }) 选举节点: rs.add({ _id: x, host: 'xxx.xxx.xxx.xxx:xxx', priority: 1, arbiterOnly: true }) 隐藏节点: 添加 hidden: true 延迟节点: slaveDelay: int(s秒) 非选举节点: priority: 0 仲裁节点: rs.addArb('xxx.xxx.xxx.xxx:xxx') ```