第一部分在一个主机上创建多个postgresql实例步骤一:安装postgresql软件安装postgresql实例,从postgresql官网上https://www.postgresql.org/下载postgresql安装软件,解压缩,创建postgres用户和组,添加环境变量。我这里下载的版本是pgsql9.5.1。创建postgresql实例安装了po..
分类:
数据库 时间:
2016-11-19 18:23:05
阅读次数:
318
在Linux下安装Postgresql有二进制格式安装和源码安装两种安装方式,这里用的是二进制格式安装。各个版本的Linux都内置了Postgresql,所以可直接通过命令行安装便可。本文用的是Centos6.5。 安装Postgresql # 安装postgresql服务器 yum install... ...
分类:
数据库 时间:
2016-11-18 18:06:03
阅读次数:
271
学习CentOS下安装使用PostgreSQL 【安装过程】 1.添加RPM yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.r ...
分类:
数据库 时间:
2016-11-11 23:01:41
阅读次数:
567
查看主机名import socketsocket.gethostname()可以这样安装postgresql安装postgresql, 输入brew install postgresql安装psycopg2解压将下载的postgresql的bin目录路径写到当前用户的.bash_profile当中c... ...
分类:
系统相关 时间:
2016-08-14 14:32:58
阅读次数:
222
Linux与云计算——第二阶段Linux服务器架设第一十二章:数据库搭建—PostgreSQL1.1安装PostgreSQL[1]安装并启动PostgreSQL.[root@server~]#yum-yinstallpostgresql-server[root@server~]#postgresql-setupinitdbInitializingdatabase...OK[root@server~]#vim/var/lib/pgsql/dat..
分类:
数据库 时间:
2016-08-13 14:21:51
阅读次数:
255
postgresql 9.3 密码 root port:5432安装完成之后将postgresql安装目录下的bin的目录加入环境变量PATH中,<!--more--> 意选择Locale的时候选择C,因为postresql不支持GBK编码。 来自为知笔记(Wiz) ...
分类:
数据库 时间:
2016-08-08 17:33:22
阅读次数:
172
官网地址:https://www.postgresql.org/ 安装文件下载地址:http://www.enterprisedb.com/products-services-training/pgdownload#windows 下载后文件:postgresql-9.6.0-beta3-windo ...
分类:
数据库 时间:
2016-08-01 01:42:48
阅读次数:
359
安装psycopg2模块: 怎么验证是否已经安装过psycopy2? 编写上面代码,运行看是否抛出缺少psycopg2模块。 安装方法1: 1)使用psycopg2-2.4.2.win-amd64-py2.7-pg9.0.4-release.exe安装,下载地址:http://vdisk.weibo ...
分类:
数据库 时间:
2016-08-01 01:40:22
阅读次数:
1010
安装前的检查 首先查看是否已经安装了旧版本: 如果已经安装了某个版本的postgresql,请先卸载。 安装postgresql 添加postgresql源: 把下面这行数据添加到pgdb.list文件中: 执行下面的命令添加postgresql安装包的秘钥: 接下来就可以安装了: 一切顺利的话就可 ...
分类:
数据库 时间:
2016-07-24 13:30:35
阅读次数:
237
1. 安装 2. 初始化 3. 设置自启动 参考:https://www.postgresql.org/download/linux/redhat/ ...
分类:
数据库 时间:
2016-07-10 23:17:19
阅读次数:
227