PostgreSQL 11二進制包安裝步驟

下載安裝包,本文以二進制包方式安裝

https://www.postgresql.org/download/

Binary packages

 

選擇適合的操作系統,會生成相對應的安裝命令。

 

  1. Select version: 
    11
  2. Select platform: 
     
  3. Select architecture: 
    x86_64
  4. Install the repository RPM:
    yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
  5. Install the client packages:
    yum install postgresql11
  6. Optionally install the server packages:
    yum install postgresql11-server
  7. Optionally initialize the database and enable automatic start:
    /usr/pgsql-11/bin/postgresql-11-setup initdb
    systemctl enable postgresql-11
    systemctl start postgresql-11
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章