版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/S630730701/article/details/80870119
在postgresql官网找对最新版本:
version:10
platform:centos6
architecture:x86_64
目录:/var/lib/pgsql/10
1、Install the repository RPM:
yum install
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-6-x86_64/pgdg-centos10-10-2.noarch.rpm
2、Install the client packages:
yum install postgresql10
3、Optionally install the server packages:
yum install postgresql10-server
4、
Optionally initialize the database and enable automatic start:
service postgresql-10 initdb
chkconfig postgresql-10 on
service postgresql-10 start
连接测试:
使用pgadmin4进行连接测试,查看下一篇