Re: novato instalacion 7.4 sobre 7.0 en RH7

From: Alexis Vasquez <lxvasquez(at)yahoo(dot)es>
To: postgres-es postgres-es <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: novato instalacion 7.4 sobre 7.0 en RH7
Date: 2004-12-22 17:56:30
Message-ID: 20041222175630.80694.qmail@web21427.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

tal como dijiste.

bash-2.04$ /usr/local/pgsql/bin/psql -l
List of databases
Name | Owner | Encoding
-----------+----------+-----------
template0 | postgres | SQL_ASCII
template1 | postgres | SQL_ASCII
(2 rows)

ahora bien. no he visto que el usuario postgres tenga
un .profile o .bash_profile para ponerle el PATH.
o donde decirle al /etc/rc.d/init.d/postgresql donde
debe buscar los datafiles

--- Juanky Moral <juanky(dot)moral(at)gmail(dot)com> escribió:
> Eso es porque la ruta a los binarios de postgres no
> se halla en el PATH:
> prueba algo así:
> /usr/local/pgsq/bin/psql -l
> (asumiendo esa ruta en tu instalación)
>
>
>
> On Wed, 22 Dec 2004 18:02:39 +0100 (CET), Alexis
> Vasquez
> <lxvasquez(at)yahoo(dot)es> wrote:
> > psql -l
> > command not found
> >
> > psql template1
> > command not found
> >
> > --- Juanky Moral <juanky(dot)moral(at)gmail(dot)com>
> escribió:
> > > A ver, varias cosas:
> > > - para contestar a la lista, en tu cliente de
> correo
> > > pulsa la opción
> > > de 'contestar a todos' o 'reply to all'.
> > > - no me queda claro si el servidor te arranca
> > > finalmente o no:
> > > bash-2.04$ /usr/local/pgsql/bin/postmaster -D
> > > /usr/local/pgsql/data
> > > LOG: could not resolve "localhost": Temporary
> > > failure
> > > in name resolution
> > > LOG: database system was shut down at
> 2004-12-22
> > > 10:15:13 AST
> > > LOG: checkpoint record is at 0/9B1098
> > > LOG: redo record is at 0/9B1098; undo record is
> at
> > > 0/0; shutdown TRUE
> > > LOG: next transaction ID: 536; next OID: 17142
> > > LOG: database system is ready
> > >
> > > La última línea parece apuntar a que sí.
> > > Haz como usuario postgres (su posgres):
> > > psql -l
> > >
> > > o conéctate a template1;
> > > psql template1
> > >
> > > a ver qué dice el backend... ya nos cuentas.
> > > Un adp.
> > >
> > >
> > > On Wed, 22 Dec 2004 17:02:25 +0100 (CET), Alexis
> > > Vasquez
> > > <lxvasquez(at)yahoo(dot)es> wrote:
> > > > de nuevo gracias juanky.
> > > > el pg_hba.conf estaba bien, pero el
> postgres.conf
> > > > tenia comentada la linea del tcpip_socket..
> la
> > > puse
> > > > true. pero no encontre lo del
> 'hostname_lookup',
> > > y
> > > > excusame lo de la lista. soy nuevo en todo
> > > esto...
> > > >
> > > > el señor mario soto, de esta lista, me dijo
> que
> > > el
> > > > problema puede ser debido a que no desinstale
> el
> > > > postgres 7 que viene con redhat 7. y que lo
> > > instala
> > > > por defecto en /usr/lib/pgsql... yo lo
> instale en
> > > > /usr/local/pgsql.
> > > >
> > > > realmente soy nuevo en esto y me gustaria una
> > > especie
> > > > de instructivo paso a paso de las cosas que
> > > deberia
> > > > verificar... los manuales y documentos me
> tienen
> > > > abrumado. os prometo RTFM later.
> > > >
> > > >
> > > > --- Juanky Moral <juanky(dot)moral(at)gmail(dot)com>
> > > escribió:
> > > > > En primer lugar, por favor, envía los
> mensajes
> > > > > también a lista. De esa
> > > > > forma TODOS te podrán ayudar.
> > > > >
> > > > > Por la información que me das, parece
> problema
> > > de
> > > > > autenticación.
> > > > > ¿te llegas a conectar desde el servidor?
> > > > > Comprueba que al menos esta líneas estén en
> tu
> > > > > pg_hba.conf
> > > > >
> > > > > local all all
> > > > > trust
> > > > > host all all 127.0.0.1
> > > > > 255.255.255.255 trust
> > > > >
> > > > > Para aceptar conexiones externas TCP/IP,
> debes
> > > > > declararlo también en
> > > > > postgresql.conf:
> > > > > tcpip_socket = true
> > > > >
> > > > > Yo probaría también (en el mismo fichero):
> > > > > hostname_lookup = false
> > > > > aunque no sé si esto último ayudará en algo.
> > > > >
> > > > > salu2
> > > > >
> > > > > On Wed, 22 Dec 2004 16:07:23 +0100 (CET),
> Alexis
> > > > > Vasquez
> > > > > <lxvasquez(at)yahoo(dot)es> wrote:
> > > > > > Gracias Juanky.
> > > > > >
> > > > > > si he hecho el /usr/local/pgsql/bin/initdb
> -D
> > > > > > /usr/local/pgsql/data
> > > > > >
> > > > > > y creó 'supongo' algo..
> > > > > >
> > > > > > pero luego al darle el comando
> > > > > > bash-2.04$ /usr/local/pgsql/bin/postmaster
> -D
> > > > > > /usr/local/pgsql/data
> > > > > > LOG: could not resolve "localhost":
> Temporary
> > > > > failure
> > > > > > in name resolution
> > > > > > LOG: database system was shut down at
> > > 2004-12-22
> > > > > > 10:15:13 AST
> > > > > > LOG: checkpoint record is at 0/9B1098
> > > > > > LOG: redo record is at 0/9B1098; undo
> record
> > > is
> > > > > at
> > > > > > 0/0; shutdown TRUE
> > > > > > LOG: next transaction ID: 536; next OID:
> > > 17142
> > > > > > LOG: database system is ready
> > > > > >
> > > > > > ... ves que dice algo del 'localhost'...
> > > > > >
> > > > > > por otra parte en el script no veo el
> $DB_DIR
> > > > > > pero le he puesto 'manualmente y no muy
> seguro
> > > de
> > > > > > esto'
> > > > > > al $PGDATA=/usr/local/pgsql/data
> > > > > >
> > > > > > --- Juanky Moral <juanky(dot)moral(at)gmail(dot)com>
> > > > > escribió:
> > > > > > > ¿Has hecho initdb? (eso inicializa un
> > > cluster
> > > > > para
> > > > > > > postgres)
> > > > > > > ¿adonde apunta tu $DB_DIR en el init
> script?
> > > (el
> > > > > > > directorio 'data')
> > > > > > >
> > > > > > >
> > > > > > > On Wed, 22 Dec 2004 15:46:18 +0100
> (CET),
> > > Alexis
> > > > > > > Vasquez
> > > > > > > <lxvasquez(at)yahoo(dot)es> wrote:
> > > > > > > > soy nuevo por lo que os ruego
> comprension.
> > > > > > > > he descargado e instalado el postgres
> 7.4
> > > en
> > > > > un
> > > > > > > redhat
> > > > > > > > 7 que ya tenia una instalacion de
> postgres
> > > 7.
> > > > > > > >
> > > > > > > > luego he visto que el script del init
> > > > > > > > '/etc/rc.d/init.d/postgresql' hacia
> > > > > referencia a
> > > > > > > la
> > > > > > > > vieja instalacion en '/usr/lib/pgsql'
> he
> > > dado
> > > > > un
> > > > > > > rpm
> > > > > > > > -e postgresql-7.0* y he editado el
> init
>
=== message truncated ===


______________________________________________
Renovamos el Correo Yahoo!: ¡250 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Juanky Moral 2004-12-22 18:25:26 Re: novato instalacion 7.4 sobre 7.0 en RH7
Previous Message Juanky Moral 2004-12-22 17:18:22 Re: novato instalacion 7.4 sobre 7.0 en RH7