美文网首页
PostgreSQL安装(Linux环境)

PostgreSQL安装(Linux环境)

作者: 小猪悠悠 | 来源:发表于2018-01-21 20:55 被阅读0次

一、Redhat家族(CentOS)

1、Install the repository RPM:

    yum installhttps://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.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:

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

    systemctl enable postgresql-10

    systemctl start postgresql-10

相关文章

网友评论

      本文标题:PostgreSQL安装(Linux环境)

      本文链接:https://www.haomeiwen.com/subject/dnbqaxtx.html