You've already forked www.colben.cn
update
This commit is contained in:
@@ -6,7 +6,7 @@ tags: ["postgresql", "replcation", "同步"]
|
||||
categories: ["database"]
|
||||
---
|
||||
|
||||
# 主库配置
|
||||
## 主库配置
|
||||
- 修改 postgresql.conf
|
||||
```
|
||||
listen_address = '*'
|
||||
@@ -29,7 +29,7 @@ categories: ["database"]
|
||||
host replication replica samenet md5
|
||||
```
|
||||
|
||||
# 从库配置
|
||||
## 从库配置
|
||||
- 停止从库 postgresql-10 服务,清空数据库目录
|
||||
```bash
|
||||
systemctl stop postgresql-10
|
||||
@@ -55,7 +55,7 @@ categories: ["database"]
|
||||
- -D 指定备份写入的数据目录,需要与数据库配置的数据库目录一致,初次备份之前从库的数据目录需要手动清空
|
||||
- -l 表示指定一个备份的标识
|
||||
|
||||
# 检查状态
|
||||
## 检查状态
|
||||
- 检查从库进程
|
||||
```bash
|
||||
ps -ef|grep postgres
|
||||
|
Reference in New Issue
Block a user