The installation of PostgreSQL and PostGIS on CentOS

Source: Internet
Author: User
Tags postgresql postgis

PostgreSQL and PostGIS are installed in two main ways, from source installation and package management tool installation, recommended to install with package management tools, the following is the specific steps installed on the CentOS 7.1 X64

  1. Install Yum repository.
    The repository of PGDG (PostgreSQL Global development Group) is recommended, and this repository includes the official latest PostgreSQL and matching PostGIS, Use a different repository without the latest or no matching PostGIS.
    Find the appropriate operating system repository RPM on the link page below
    http://yum.postgresql.org/repopackages.php
    Installing with the RPM tool
  2. Check for available installation packages

    As you can see from the output, there are only 9.2 of the CentOS default repository, 9.4 PostgreSQL and PostGIS in PGDG repository
  3. Installing PostgreSQL
    Yum install postgresql94.x86_64 postgresql94-server.x86_64 postgresql94-libs.x86_64 postgresql94-contrib.x86_64 Postgresql94-devel.x86_64
  4. Installing PostGIS

    Will report a bunch of dependency errors.

    Need to install Epel's repository

    Re-run Yum installation PostGIS
  5. Installation Complete

The installation of PostgreSQL and PostGIS on CentOS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.