码迷,mamicode.com
首页 > 数据库 > 详细

postgresql安装

时间:2019-11-05 21:23:56      阅读:99      评论:0      收藏:0      [点我收藏+]

标签:blank   class   x86   href   tomat   str   recommend   through   short   

Linux downloads (Red Hat family)

The Red Hat family of distributions includes:

 

      • Red Hat Enterprise Linux
      • CentOS
      • Fedora
      • Scientific Linux
      • Oracle Linux

and others.

PostgreSQL is available on these platforms by default. However, each version of the platform normally "snapshots" a specific version of PostgreSQL that is then supported throughout the lifetime of this platform. Since this can often mean a different version than preferred, the PostgreSQL project provides a repository of packages of all supported versions for the most common distributions.

PostgreSQL Yum Repository

The PostgreSQL Yum Repository will integrate with your normal systems and patch management, and provide automatic updates for all supported versions of PostgreSQL throughout the support lifetime of PostgreSQL.

The PostgreSQL Yum Repository currently supports:

 

      • Red Hat Enterprise Linux
      • CentOS
      • Scientific Linux
      • Oracle Linux
      • Fedora*

*Note: due to the shorter support cycle on Fedora, all supported versions of PostgreSQL are not available on this platform. We do not recommend using Fedora for server deployments.

To use the PostgreSQL Yum Repository, follow these steps:

    1. Select version:
  1. Select platform:
  2. Select architecture:
  3. Install the repository RPM:
    yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
  4. Install the client packages:
    yum install postgresql12
  5. Optionally install the server packages:
    yum install postgresql12-server
  6. Optionally initialize the database and enable automatic start:
    /usr/pgsql-12/bin/postgresql-12-setup initdb
    systemctl enable postgresql-12
    systemctl start postgresql-12

postgresql安装

标签:blank   class   x86   href   tomat   str   recommend   through   short   

原文地址:https://www.cnblogs.com/igoodful/p/11801529.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!