PostgreSQL10.5在centos7.5上安装


下面介绍用yum在CentOS 7.5安装PostgreSQL10.5。

下载源

yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-redhat10-10-2.noarch.rpm

安装服务器软件包:

yum install postgresql10-server

安装客户端软件包:

yum install postgresql10

可选地初始化数据库并启用自动启动:

/usr/pgsql-10/bin/postgresql-10-setup initdb

systemctl enable postgresql-10

systemctl start postgresql-10

猜你喜欢

转载自blog.csdn.net/weixin_43229107/article/details/83793117
今日推荐