PostgreSQL安装(Linux环境)

2018-01-21  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读