postgis centos7安装
时间: 2023-09-19 20:12:40 浏览: 106
要在CentOS 7上安装PostGIS,您可以按照以下步骤进行操作:
1. 首先,安装PostgreSQL的yum仓库。使用以下命令安装pgdg-redhat-repo-latest.noarch.rpm包:
```
yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
```
2. 接下来,安装必要的工具包和依赖项。使用以下命令安装wget、net-tools和epel-release:
```
yum install -y wget net-tools epel-release
```
3. 然后,安装PostGIS和PostGIS客户端。使用以下命令安装postgis30_12和postgis30_12-client:
```
yum install -y postgis30_12 postgis30_12-client
```
通过按照上述步骤安装postgis和相关依赖项,您就可以在CentOS 7上成功安装PostGIS了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Centos7安装PostgreSQL 12.4 + postgis安装](https://blog.csdn.net/sunny05296/article/details/108458541)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文