1.Install the repository RPM

执行

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
yum install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm

2.Install the client packages:

执行

yum install postgresql11

3.Optionally install the server packages:

执行

yum install postgresql11-server

4.Optionally initialize the database and enable automatic start:

执行

/usr/pgsql-11/bin/postgresql-11-setup initdb
systemctl enable postgresql-11
systemctl start postgresql-11

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄