Menu

Installation

Sarah

PAQUETS NÉCESSAIRES

Paquets nécessaires à l'installation du logiciel :

  • postgresql
  • postgresql-client
  • postgresql-client-common
  • postgresql-common
  • python-pygresql

CONFIGURATION DE POSTGRES

Création du rôle

Pour une première utilisation de postgresql :

$ sudo -i -u postgres

Lancer postgresql et créer un rôle pain :

$ psql
postgres=# CREATE USER pain;
postgres=# ALTER ROLE pain WITH CREATEDB;

(ou ubuntu ? à tester avec LOGIN, SUPERUSER, REPLICATION)

Édition de pg_hba.conf

Éditer le fichier /etc/postgresql/x.x/main/pg_hba.conf, x.x étant le numéro de version de postgresql.

Après la ligne :
local all postgres peer

Ajouter :
local all pain trust

Redémarrer postgresql

$ sudo /etc/init.d/postgresql restart

INSTALLATION

Depuis un terminal, aller dans le répertoire de travail bin
puis lancer la commande :

./install.py

MongoDB Logo MongoDB