[英]Install Postgresql + Postgis on CentOS 7
I can see that CentOS 7 ships with Postgresql 9.2, but I cannot find Postgis in either central repo or epel 7, any solution please? 我可以看到CentOS 7随附于Postgresql 9.2,但是在中央存储库或epel 7中都找不到Postgis,请问有什么解决方案吗? Thanks a lot!
非常感谢!
As Soni Harriz already mentioned, you can install PostgreSQL and PostGIS from a Postgresql.org maintained Yum
repository. 如Soni Harriz所述,您可以从Postgresql.org维护的
Yum
存储库安装PostgreSQL和PostGIS。 Yet, you do not need to manually install each package ( that would be a dependency nightmare! ). 然而,你不需要手动安装一个软件包( 这将是一个依赖恶梦!)。 If you go to the PostgreSQL Yum page:
如果转到PostgreSQL Yum页面:
http://yum.postgresql.org/ http://yum.postgresql.org/
You can select which version you wish to install. 您可以选择要安装的版本。 At the time of writing, this would be version 9.3, found here: http://yum.postgresql.org/repopackages.php#pg93 .
在撰写本文时,这将是9.3版,可在以下位置找到:http: //yum.postgresql.org/repopackages.php#pg93 。 And more specifically for CentOS 7 here: http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm
以及更具体的针对CentOS 7的信息:http: //yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm
This will setup a Yum
repository and the needed GPG keys so you do not have to go and manually install the packages. 这将设置一个
Yum
存储库和所需的GPG密钥,因此您不必手动安装软件包。 More detailed install/setup information can be found here . 可以在此处找到更详细的安装/设置信息。
These repositories have a full install script available which will also initiate your cluster. 这些存储库具有可用的完整安装脚本,该脚本还将启动您的集群。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.