patroni+etcd+postgresql 集群快速搭建-patroni+etcd+postgresql 集群快速搭建
热门回复:
- 和谐之声:https://postgres.fun/20200529182600.html
https://zhuanlan.zhihu.com/p/260958352
两篇参考
- 牧云踏歌:不错不错, 正好要试试 patroni ,已三连
- east_spidar:字体太小了[疑惑]
- 和谐之声:yum install -y python3 python3-devel vim gcc https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install -y postgresql13-server postgresql-devel
/usr/pgsql-13/bin/postgresql-13-setup initdb
systemctl enable postgresql-13
systemctl start postgresql-13
systemctl stop firewalld.service
systemctl disable firewalld.service
wget -c https://github.com/etcd-io/etcd/releases/download/v3.5.0/etcd-v3.5.0-linux-amd64.tar.gz
tar xvf etcd-v3.5.0-linux-amd64.tar.gz
mv etcd-v3.5.0-linux-amd64 etcd
mv etcd /opt
pip3 install patroni【etcd】 -i https://mirrors.aliyun.com/pypi/simple/
pip3 install psycopg2
pip3 install psycopg2-binary -i https://mirrors.aliyun.com/pypi/simple/
pip3 install patroni -i https://mirrors.aliyun.com/pypi/simple/
所有脚本
- 我的大猪肘:大佬有文档吗?