時(shí)間:2024-02-28 13:28作者:下載吧人氣:23
環(huán)境說(shuō)明和主機(jī)規(guī)劃
操作系統(tǒng) | 主機(jī)名 | 主機(jī) | 角色 | 端口 |
---|---|---|---|---|
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 |
基礎(chǔ)環(huán)境配置(所有主機(jī)操作)
配置HOSTS
echo -e “10.0.0.11 mastern10.0.0.12 slaven10.0.0.13 pool” >> /etc/hosts # 執(zhí)行一次即可
配置統(tǒng)一的時(shí)間(若已配置,請(qǐng)忽略)
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 # 寫(xiě)入定時(shí)任務(wù),執(zhí)行一次即可
網(wǎng)友評(píng)論