Installation PostgreSQL
Soumis par admin le lun, 02/27/2012 - 13:45
Récupération des sources
-
wget <a href="http://ftp.postgresql.org/pub/source/v9.1.2/postgresql-9.1.2.tar.gz
-
-
tar">http://ftp.postgresql.org/pub/source/v9.1.2/postgresql-9.1.2.tar.gz
-
-
tar</a> xvzf postgresql-9.1.2.tar.gz
Compilation des sources
-
cd postgresql-9.1.2
-
-
./configure --prefix=/opt/postgresql-9.1.2
-
-
make -j2 && make install
Initialisation de la base.
-
useradd -d /home/databases/postgresql postgres
-
-
mkdir -p /home/databases/postgresql
-
-
chown postgres: -R /home/databases/postgresql
-
-
su - postgres
-
-
/opt/postgresql-9.1.2/bin/initdb -D /home/databases/postgresql-9.1.2
-
-
/opt/postgersql-9.1.2/bin/pg_ctl -D /home/databases/postgresql-9.1.2 start
Voila un postgresql installé et démarré. Un prochain article détaillera une configuration un peu plus optimisée.
- Identifiez-vous pour poster des commentaires
