PostgreSQL安装配置
2016-02-15 17:32
330 查看
本篇将介绍在PostgreSQL安装部署。
目录:1.下载
2.Windows部署
3.CentOS部署
4.设置
5.参考资料
1.下载
下载地址:http://www.postgresql.org/download/或者http://www.enterprisedb.com/products-services-training/pgdownload2.Windows部署
下载windows下的安装程序,执行安装(附带pgAdmin III)。默认端口5432,默认超级用户postgres/postgres。
3.CentOS部署
3.1.Installer安装,下载linux下的安装程序,执行安装(附带pgAdmin III)。3.2.yum安装,
$ yum install postgresql-server
注:RHEL/CentOS/SL/OL 7 提供PostgreSQL版本:9.2
RHEL/CentOS/SL/OL 6 提供PostgreSQL版本:8.4(also supplies package postgresql92)
PostgreSQL高版本安装:
$ yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm $ yum install postgresql94-server postgresql94-contrib $ service postgresql-9.4 initdb $ chkconfig postgresql-9.4 on
4.设置
4.1.远程访问:配置文件:postgresql.conf
listen_addresses = '*'
文件:pg_hba.conf
在该配置文件的host all all 127.0.0.1/32 md5行下添加以下配置或者修改:
host all all 0.0.0.0/0 md5
如果不希望允许所有IP远程访问,则可以将上述配置项中的0.0.0.0设定为特定的IP值。
4.2.客户端:pgAdmin--PostgreSQL管理工具(http://www.pgadmin.org/)
5.参考资料
http://www.postgresql.org/相关文章推荐
- mysql免安装版配置
- MongoDB 3.0 速上手教程(JAVA)
- 事务(sqlite本地数据操作优化)
- Oracle安装概述
- navicat for mysql中添加注释
- JAVA单例MongoDB工具类
- MySQL运行外部脚本的那些坑
- mongodb_修改器($inc/$set/$unset/$push/$pop/upsert......)
- Oracle中基本sql语句
- MySQL具体解释(5)-----------函数超全总结
- ODBC: SQL to C
- zabbix监控数据库表空间大小
- (sql语句)写完表插入主键
- cx_Oracle InterfaceError: Unable to acquire Oracle environment handle
- oracle中的decode的使用
- SQLHelper类
- oracle使用exp导出并备份上传shell
- 【php + mongodb】windows php5.4 配置 mongodb 扩展(附各种其它版本下载地址)
- 【php + mongodb】windows php5.4 配置 mongodb 扩展(附各种其它版本下载地址)
- XAMPP启动MySQL报错