Database
数据库
派小星620
enterprise!
展开
-
Postgres主从异步流复制
1 准备工作 1.1 PG版本 psql (PostgreSQL) 10.8 1.2 系统准备 安装工具 调整时区 安装POSTGRES数据库 配置主从服务器的postgres用户相互免密SSH登录 2 主库服务器操作 2.1 修改pg_hba.conf文件 host replication replicator 主库IP/32 md5 # 允许主库用户访问 host replication replicator 从库IP/32原创 2020-10-29 16:59:44 · 269 阅读 · 1 评论 -
Linux源码编译安装Postgres
ubuntu安装 # 安装依赖 apt install -y gcc make libreadline-gplv2-dev zlib1g-dev bison flex # 创建用户 useradd -d /usr/local/pgsql/ -m -s /bin/bash postgres # 编译安装 ./configure --prefix=/usr/local/pgsql/ make make install centos安装 # 安装依赖 yum install -y git gcc make re原创 2020-10-19 18:00:46 · 2272 阅读 · 0 评论