postgresql集群搭建方法

2025-05-06 00:32:33

1、创建用户postgresansible all -m shell -a "useradd postgres"

postgresql集群搭建方法

3、批量安装基础软件包ansible all -m shell -a "yum install -y flex biso荏鱿胫协n readline-devel zlib-devel openjade docbook-style-dsssl gcc"

postgresql集群搭建方法

5、全部节点都创建pg垓矗梅吒xc路径,用来存放postgres文件ansible all -m shell -a "su - postgres -艘早祓胂c 'mkdir -p /home/postgres/pgxc/nodes/'"

postgresql集群搭建方法

7、关闭iptablessystemctl stop iptables.servicesystemctl disable iptables.service关闭SELinuxsetenforce 0

postgresql集群搭建方法
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢