postgresql安装
Posted igoodful
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了postgresql安装相关的知识,希望对你有一定的参考价值。
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:
- Select version:
- Select platform: Select architecture:
- Install the repository RPM:
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
- Install the client packages:
yum install postgresql12
- Optionally install the server packages:
yum install postgresql12-server
- 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安装的主要内容,如果未能解决你的问题,请参考以下文章
Mac + virtualenv + pip + postgresql = 错误:找不到 pg_config 可执行文件
ubuntu14.04源代码安装postgresql 9.1
在Tomcat的安装目录下conf目录下的server.xml文件中增加一个xml代码片段,该代码片段中每个属性的含义与用途