CentOS 6.5系统下安装postgresql数据库+postgis+pgagent+pgadmin工具
来源:互联网 发布:如何招募淘宝客 编辑:程序博客网 时间:2024/06/03 22:04
CentOS 6.5系统下安装postgresql数据库+postgis+pgagent+pgadmin工具
本文档主要记录在一个全新的centos6.5系统下安装postgresql数据以及其他相关工具的步骤和注意事项。postgresql的其他工具的安装方式也是类似的。
检查是否有pg数据库的源:
命令: yum list postgres*
如无结果,则说明当前系统未引用pg数据库相关的yum源,需要先安装pg的yum源,安装命令如下: rpm -Uvh https://yum.postgresql.org/9.5/redhat/rhel-6.5-x86_64/pgdg-centos95-9.5-3.noarch.rpm
- 注意:pgdg-centos95-9.5-3.noarch.rpm名称会根据版本变化而变化,具体可以打开https://yum.postgresql.org/9.5/redhat/rhel-6.5-x86_64/查看具体的可用版本。
下载的是pg9.5版本的源。
再次运行yum list postgres*命令,结果如下:
Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cnbase | 3.7 kB 00:00 extras | 3.4 kB 00:00 google-chrome | 951 B 00:00 pgdg95 | 4.1 kB 00:00 pgdg95/primary_db | 176 kB 00:02 updates | 3.4 kB 00:00 updates/primary_db | 5.4 MB 00:05 Available Packagespostgresql.i686 8.4.20-6.el6 base postgresql.x86_64 8.4.20-6.el6 base postgresql-contrib.x86_64 8.4.20-6.el6 base postgresql-devel.i686 8.4.20-6.el6 base postgresql-devel.x86_64 8.4.20-6.el6 base postgresql-docs.x86_64 8.4.20-6.el6 base postgresql-jdbc.noarch 42.0.0-1.rhel6 pgdg95postgresql-jdbc-javadoc.noarch 42.0.0-1.rhel6 pgdg95postgresql-libs.i686 8.4.20-6.el6 base postgresql-libs.x86_64 8.4.20-6.el6 base postgresql-odbc.x86_64 08.04.0200-1.el6 base postgresql-plperl.x86_64 8.4.20-6.el6 base postgresql-plpython.x86_64 8.4.20-6.el6 base postgresql-pltcl.x86_64 8.4.20-6.el6 base postgresql-server.x86_64 8.4.20-6.el6 base postgresql-test.x86_64 8.4.20-6.el6 base postgresql-unit95.x86_64 1.0-1.rhel6 pgdg95postgresql-unit95-debuginfo.x86_64 1.0-1.rhel6 pgdg95postgresql94-jdbc.noarch 9.4.1207-1.rhel6 pgdg95postgresql94-jdbc-javadoc.noarch 9.4.1207-1.rhel6 pgdg95postgresql95.x86_64 9.5.6-2PGDG.rhel6 pgdg95postgresql95-contrib.x86_64 9.5.6-2PGDG.rhel6 pgdg95postgresql95-debuginfo.x86_64 9.5.6-2PGDG.rhel6 pgdg95postgresql95-devel.x86_64 9.5.6-2PGDG.rhel6 pgdg95postgresql95-docs.x86_64 9.5.6-2PGDG.rhel6 pgdg95postgresql95-libs.x86_64 9.5.6-2PGDG.rhel6 pgdg95postgresql95-odbc.x86_64 09.06.0100-1PGDG.rhel6 pgdg95postgresql95-odbc-debuginfo.x86_64 09.03.0400-1PGDG.rhel6 pgdg95postgresql95-plperl.x86_64 9.5.6-2PGDG.rhel6 pgdg95postgresql95-plpython.x86_64 9.5.6-2PGDG.rhel6 pgdg95postgresql95-pltcl.x86_64 9.5.6-2PGDG.rhel6 pgdg95postgresql95-server.x86_64 9.5.6-2PGDG.rhel6 pgdg95postgresql95-tcl.x86_64 2.0.0-1.rhel6 pgdg95postgresql95-tcl-debuginfo.x86_64 2.0.0-1.rhel6 pgdg95postgresql95-test.x86_64
可以看到,现在有若干pg的源可以使用。
运行安装命令: yum install postgresql95-devel.x86_64
即可安装64位版pg9.5数据库。
安装完成后,执行pg数据库的初始化命令、启动服务等步骤不再赘述;
在下载pg数据库yum源的地址时,同时包含了pg其他相关的工具源,如pgagent、postgis等。
执行命令:yum list postgis*
可以查看到postgis的可用源,安装方式和pg数据库类似,不再赘述。
同样pgAgent和pgadmin工具安装方式类似,不再赘述;
此次安装最重要的步骤就是安装pg的yum源,之后就可以直接使用yum安装。
0 0
- CentOS 6.5系统下安装postgresql数据库+postgis+pgagent+pgadmin工具
- webgis实践之数据库linux下 Postgresql + postgis + pgrouting安装
- webgis实践之数据库windows下 Postgresql + postgis + pgrouting安装
- pgAdmin连接postgresql数据库
- postgresql+postgis空间数据库安装总结
- centos6.5安装postgresql数据库和pgadmin客户端
- liunx环境下源码安装PostgreSQL+PostGIS
- Ubuntu Linux 下编译安装 PostgreSQL 和 pgAdmin
- centos7安装postgresql和pgadmin
- CentOS 6.5下安装postgis(使用源码)
- PostgreSQL 与 PostGIS 在CentOS上的安装
- postgresql , postgis 安装
- PostgreSQL/PostGIS安装
- Mac安装PostgreSQL/PostGIS
- PostgreSql+PostGIS的安装
- CentOS安装PostgreSQL数据库
- CentOS 6.5系统下安装MySQL数据库
- CentOS下安装postgresql
- cuda教程整理
- Spring中InitializingBean接口使用理解
- C#datatable 存储成xml
- spring事务详解
- php验证码 SESSION值产生失败的问题
- CentOS 6.5系统下安装postgresql数据库+postgis+pgagent+pgadmin工具
- OpenCV编译lena项目出错
- Qt之调用外部DLL
- 合理安排美国留学申请时间和参加雅思考试时间
- 电子商务几种模式
- 合并list并去重
- MindMapper头脑风暴视图功能使用方法
- Java程序员应该知道的10个调试技巧
- 一步一步实现iOS微信自动抢红包(非越狱)