一、在CentOS上安装PostgreSQL数据库
下面我们就以CentOS系统为例,给大家讲解一下PostgreSQL的安装过程。
1.使用yum安装postgresql
[pengchengxiang@localhost ~]$ sudo yum install postgresql-server.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package postgresql-server.x86_64 0:8.4.20-3.el6_6 will be installed
--> Processing Dependency: postgresql(x86-64) = 8.4.20-3.el6_6 for package: postgresql-server-8.4.20-3.el6_6.x86_64
--> Running transaction check
---> Package postgresql.x86_64 0:8.4.20-3.el6_6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
===============================================================&