如何在运行 Amazon Linux 2023 的 AWS 中的 EC2 实例中安装 Postgres 的 PostGIS 扩展?

问题描述 投票:0回答:1

我正在尝试在运行 Amazon Linux 2023 (AL2023) 的 AWS EC2 实例中的 Postgres 15 中安装 PostGIS 扩展。但是,我之前在 Amazon Linux 2 中使用的方法不适用于新版本。基本上,AL2023 不包含额外功能,因此之前用于安装扩展的命令

amazon-linux-extras
现在不可用。我检查了 AWS 常见问题解答,发现此软件包现在不属于 Amazon Linux 2023 (AL2023 常见问题解答)

我知道AWS中的RDS包含PostGIS,但我当前的需求不需要额外的服务器,这与应用程序和数据库的单个EC2实例不同。另一方面,也许 Redhat/Centos 系列的某些存储库允许安装,但我还没有找到有关安全的信息。

作为查看可用软件包的命令的参考输出给了我

$ yum search post*
Last metadata expiration check: 2:05:28 ago on Fri Jun  9 20:36:37 2023.
=========================================== Name & Summary Matched: post* ============================================
postfix.x86_64 : Postfix Mail Transport Agent
postfix-cdb.x86_64 : Postfix CDB map support
postfix-ldap.x86_64 : Postfix LDAP map support
postfix-lmdb.x86_64 : Postfix LDMB map support
postfix-mysql.x86_64 : Postfix MySQL map support
postfix-pcre.x86_64 : Postfix PCRE map support
postfix-perl-scripts.x86_64 : Postfix utilities written in perl
postfix-pgsql.x86_64 : Postfix PostgreSQL map support
postfix-sqlite.x86_64 : Postfix SQLite map support
postgresql15.x86_64 : PostgreSQL client programs
postgresql15-private-devel.x86_64 : PostgreSQL development header files for this build of PostgreSQL server
postgresql15-server-devel.x86_64 : PostgreSQL development header files and libraries
================================================ Name Matched: post* =================================================
postgresql15-contrib.x86_64 : Extension modules distributed with PostgreSQL
postgresql15-docs.x86_64 : Extra documentation for PostgreSQL
postgresql15-llvmjit.x86_64 : Just-in-time compilation support for PostgreSQL
postgresql15-plperl.x86_64 : The Perl procedural language for PostgreSQL
postgresql15-plpython3.x86_64 : The Python3 procedural language for PostgreSQL
postgresql15-pltcl.x86_64 : The Tcl procedural language for PostgreSQL
postgresql15-private-libs.x86_64 : The shared libraries required only for this build of PostgreSQL server
postgresql15-server.x86_64 : The programs needed to create and run a PostgreSQL server
postgresql15-static.x86_64 : Statically linked PostgreSQL libraries
postgresql15-test.x86_64 : The test suite distributed with PostgreSQL
postgresql15-test-rpm-macros.noarch : Convenience RPM macros for build-time testing against PostgreSQL server
postgresql15-upgrade.x86_64 : Support for upgrading from the previous major release of PostgreSQL
postgresql15-upgrade-devel.x86_64 : Support for build of extensions required for upgrade process
=============================================== Summary Matched: post* ===============================================
collectd-postgresql.x86_64 : PostgreSQL plugin for collectd
dovecot-pgsql.x86_64 : Postgres SQL back end for dovecot
libpq.x86_64 : PostgreSQL client library
perl-Module-Package.noarch : Postmodern Perl Module Packaging
perl-autouse.noarch : Postpone load of modules until a function is used
psutils.noarch : PostScript utilities
python3-dnf-plugin-post-transaction-actions.noarch : Post transaction actions Plugin for DNF
t1lib.x86_64 : PostScript Type 1 font rasterizer
texlive-esstix.noarch : PostScript versions of the ESSTIX, with macro support
texlive-pspicture.noarch : PostScript picture support
texlive-pstricks.noarch : PostScript macros for TeX
postgresql amazon-web-services amazon-ec2 postgis
1个回答
0
投票

我正在开发一个项目,该项目也需要 EC2 上的 PostGIS。我找到了这个文档,但我不知道如何处理它。我们是否必须自己创建一个扩展才能使用 PostGIS? AmzonRDS 上的 PostGIS

© www.soinside.com 2019 - 2024. All rights reserved.