时间:2024-02-28 13:28作者:下载吧人气:25
环境说明和主机规划
操作系统 | 主机名 | 主机 | 角色 | 端口 |
---|---|---|---|---|
CentOS 7 | master | 10.0.0.11 | PG-Master | 54321 |
CentOS 7 | slave | 10.0.0.12 | PG-Slave | 54321 |
CentOS 7 | pool | 10.0.0.13 | pgpool | 54321 |
基础环境配置(所有主机操作)
配置HOSTS
echo -e “10.0.0.11 mastern10.0.0.12 slaven10.0.0.13 pool” >> /etc/hosts # 执行一次即可
配置统一的时间(若已配置,请忽略)
yum install -y ntpdate && ntpdate ntp1.aliyun.com
echo -e “# sync time from ntp1.aliyun.comn5 * * * * /usr/sbin/ntpdate ntp1.aliyun.com > /dev/null 2>&1
” >> /var/spool/cron/root # 写入定时任务,执行一次即可
网友评论