Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 04/02/2006, à 18:10

szdavid

[Résolu] Erreur démarrage PGSQL

Salut,

quand je veux démarrer pgsql, j'ai ce message d'erreur :

szdavid@David:/etc/init.d$ sudo ./postgresql start
* Starting PostgreSQL 7.4 database server: main The PostgreSQL server failed to start. Please check the log output:
/usr/lib/postgresql/7.4/bin/postmaster: Les connexions TCP/IP doivent être activées par SSL

Une idée ?

Dernière modification par szdavid (Le 04/02/2006, à 18:42)

Hors ligne

#2 Le 04/02/2006, à 18:22

yanapu

Re : [Résolu] Erreur démarrage PGSQL

Chez moi, pas de problème.

Je te copie/colle les bouts de fichiers de configuration utilisée :
/etc/postgresql/7.4/main/pg_hba.conf :

local   all         postgres                                        ident sameuser
#
# All other connections by UNIX sockets
local   all         all                                             ident sameuser
#
# All IPv4 connections from localhost
host    all         postgres         127.0.0.1         255.255.255.255   trust
host    all         all         127.0.0.1         255.255.255.255   ident sameuser
#
# All IPv6 localhost connections
host    all         all         ::1               ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff        ident sameuser host    all         all         ::ffff:127.0.0.1/128                ident sameuser
#
# reject all other connection attempts
host    all         all         0.0.0.0           0.0.0.0           reject

/etc/postgresql/7.4/main/postgresql.conf :

# - Connection Settings -

tcpip_socket = true
max_connections = 32
        # note: increasing max_connections costs about 500 bytes of shared
        # memory per connection slot, in addition to costs from shared_buffers
        # and max_locks_per_transaction.
superuser_reserved_connections = 2
port = 5432
unix_socket_directory = '/var/run/postgresql'
#unix_socket_group = ''
#unix_socket_permissions = 0777 # octal
#virtual_host = ''              # what interface to listen on; defaults to any
#rendezvous_name = ''           # defaults to the computer name

# - Security & Authentication -

#authentication_timeout = 60    # 1-600, in seconds
#ssl = false
#password_encryption = true
#krb_server_keyfile = ''
#db_user_namespace = false

en espérant que cela t'aide.

Hors ligne

#3 Le 04/02/2006, à 18:42

szdavid

Re : [Résolu] Erreur démarrage PGSQL

Bingo ;

j'avais cette ligne 
tcpip_socket = true à false

Hors ligne