目录
- 1.1. Ubuntu 12.04.1 LTS 安装
- 1.2. YUM 默认源安装
- 1.3. PostgreSQL 官方 YUM 源安装
-
- 1.3.1. 9.2
- 1.3.2. 9.3
- 1.3.3. 9.4
- 1.3.4. 9.6
- 1.3.5. 10
- 1.4. PostgreSQL 配置
-
- 1.4.1. postgresql.conf
- 1.4.2. pg_hba.conf
- 1.5. 创建dba用户
1.1. Ubuntu 12.04.1 LTS 安装
安装环境
PostgreSQL 9.1
$ sudo apt-get install postgresql$ sudo apt-get install postgresql
更改postgres管理员用户密码
$ sudo passwd postgres Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
然后切换到postgres用户环境
$ su - postgres Password: Added user postgres.
进入psql客户款, PostgreSQL的psql命令相当于sqlplus,mysql命令
$ psql psql (9.1.6) Type "help" for help. postgres=#
退出\q
postgres=# \q
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。