Lets now install a database on it my choice is no Postgres 8.2 database.
[centosuser@localhost ~]$ su - root
List PostGres available versions:
[root@localhost ~]# yum list postgres\*
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: ftp.up.pt
* extras: ftp.up.pt
* updates: ftp.up.pt
Available Packages
postgresql.x86_64 8.4.7-1.el6_0.1 updates
postgresql-contrib.x86_64 8.4.7-1.el6_0.1 updates
postgresql-devel.i686 8.4.7-1.el6_0.1 updates
postgresql-devel.x86_64 8.4.7-1.el6_0.1 updates
postgresql-docs.x86_64 8.4.7-1.el6_0.1 updates
postgresql-jdbc.x86_64 8.4.701-3.el6 base
postgresql-libs.i686 8.4.7-1.el6_0.1 updates
postgresql-libs.x86_64 8.4.7-1.el6_0.1 updates
postgresql-odbc.x86_64 08.04.0200-1.el6 base
postgresql-plperl.x86_64 8.4.7-1.el6_0.1 updates
postgresql-plpython.x86_64 8.4.7-1.el6_0.1 updates
postgresql-pltcl.x86_64 8.4.7-1.el6_0.1 updates
postgresql-server.x86_64 8.4.7-1.el6_0.1 updates
postgresql-test.x86_64 8.4.7-1.el6_0.1 updates
[centosuser@localhost ~]$ yum install postgresql-server
========================================================================
Package Arch Version Repository Size
========================================================================
Installing:
postgresql-server x86_64 8.4.7-1.el6_0.1 updates 3.3 M
Installing for dependencies:
postgresql x86_64 8.4.7-1.el6_0.1 updates 2.7 M
postgresql-libs x86_64 8.4.7-1.el6_0.1 updates 193 k
Transaction Summary
========================================================================
Install 3 Package(s)
Upgrade 0 Package(s)
Total download size: 6.1 M
Installed size: 28 M
Is this ok [y/N]: y
.....
Complete!
[root@localhost ~]#
Inicialize de cluster
[centosuser@localhost ~]$ service postgresql initdb
Started the service a
[centosuser@localhost ~]$ chkconfig postgresql on
Make sure in every boot the service start automaticly
[centosuser@localhost ~]$ service postgresql start
Sem comentários:
Enviar um comentário