centos7安装postgresql10的简单步骤

To use the yum repository, follow these steps:

  • Select version: 109.6 9.59.49.3
  • Select platform: * Select your platform RedHat Enterprise Linux 7RedHat Enterprise Linux 6 CentOS 7CentOS 6 Scientific Linux 7Scientific Linux 6 Fedora 27Fedora 26 Fedora 25 Oracle Enterprise Linux 7Oracle Enterprise Linux 6
  • Select architecture: x86_64 ppc64le
  • Install the repository RPM:yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm
  • Install the client packages:yum install postgresql10
  • Optionally install the server packages:yum install postgresql10-server
  • Optionally initialize the database and enable automatic start:/usr/pgsql-10/bin/postgresql-10-setup initdb
    systemctl enable postgresql-10
    systemctl start postgresql-10

你可能感兴趣的:(CentOS,postgresql10)