Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Forum De Bell Tolls > [linux] PosTgreSQL
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Antrox
.fedelissimo.

User info:
Registered: Aug 2002
Posts: 59 (0.01 al dì)
Location: Lecco
Corso: Informatica
Anno: 3
Time Online: 2 Days, 11:28:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Cool PosTgreSQL

Ho un prb di questo tipo.
Ho installato la redhat 9.0 comprensiva dei pacchetti di php
e postgresql,ma non ho la + pallida idea di come attivare postgres e potrelo quindi utilizzare.
Qualcuno sa darmi qualche dritta o indirizzarmi a qualche link?
Grazie 1000.

__________________
Resistance is futile

05-11-2003 11:43
Click Here to See the Profile for Antrox Click here to Send Antrox a Private Message Find more posts by Antrox Add Antrox to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Walter
dsy adminz

User info:
Registered: Mar 2002
Posts: 5304 (0.61 al dì)
Location: Milano 90% - Valle Camonica 10%
Corso: Magistrale in Informatica
Anno: fine!
Time Online: 99 Days, 4:23:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

http://www.postgres.org/docs/7.3/st...stallation.html

__________________
"Ragione e passione sono timone e vela della nostra anima navigante." - Kahlil Gibran
"Senza musica la vita sarebbe un errore." - Friedrich Nietzsche

05-11-2003 11:47
Click Here to See the Profile for Walter Click Here to See the Blog of Walter Click here to Send Walter a Private Message Visit Walter's homepage! Find more posts by Walter Add Walter to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Antrox
.fedelissimo.

User info:
Registered: Aug 2002
Posts: 59 (0.01 al dì)
Location: Lecco
Corso: Informatica
Anno: 3
Time Online: 2 Days, 11:28:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Grazie.
Questo sito l'avevo già visto.
Quello che non capisco è come configurare Postgresql avendolo
già installato con la redhat,non a parte dai sorgenti.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!

__________________
Resistance is futile

05-11-2003 14:15
Click Here to See the Profile for Antrox Click here to Send Antrox a Private Message Find more posts by Antrox Add Antrox to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Walter
dsy adminz

User info:
Registered: Mar 2002
Posts: 5304 (0.61 al dì)
Location: Milano 90% - Valle Camonica 10%
Corso: Magistrale in Informatica
Anno: fine!
Time Online: 99 Days, 4:23:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Il fatto che tu abbia installato il pacchetto rpm non ti stravolge la vita...

./configure
gmake
su
gmake install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test


Alcuni dei punti precedenti sicuramente non saranno necessari... comincia a controllare se hai un utente chiamato postgres (se non c'è: adduser postgres) e poi prosegui a controllare i punti successivi...
Attenzione: credo che il pacchetto rpm configuri la directory data in /var/lib/pgsql/data (non in /usr/local/pgsql/data), e la directory bin in /usr/bin (non in /usr/local/pgsql/bin).

Se l'utente postgres e la directory /var/lib/pgsql/data esistono, allora potrebbero bastarti queste tre righe per completare l'installazione ed avviare il server:

su - postgres
/usr/bin/initdb -D /var/lib/pgsql/data
/usr/bin/postmaster -D /var/lib/pgsql/data >logfile 2>&1 &
(ho cambiato i percorsi controllando una installazione rh9 che ho a disposizione).

__________________
"Ragione e passione sono timone e vela della nostra anima navigante." - Kahlil Gibran
"Senza musica la vita sarebbe un errore." - Friedrich Nietzsche

Last edited by Walter on 05-11-2003 at 14:43

05-11-2003 14:23
Click Here to See the Profile for Walter Click Here to See the Blog of Walter Click here to Send Walter a Private Message Visit Walter's homepage! Find more posts by Walter Add Walter to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Antrox
.fedelissimo.

User info:
Registered: Aug 2002
Posts: 59 (0.01 al dì)
Location: Lecco
Corso: Informatica
Anno: 3
Time Online: 2 Days, 11:28:30 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Grazie 1000 Walter.
Hai ragione,l'utente postgres e la directory /var/lib/pgsql/data esistono!
Ma esiste la possibilità di creare una script che mi parta all'avvio di linux in modo da trovare postgres già attivo?
Dove dovrei crearla/richiamarla?
Per usare postgres posso loggarmi come root e poi diventare
utente postgres?
Grazie 1000 delle tue info!

__________________
Resistance is futile

05-11-2003 14:52
Click Here to See the Profile for Antrox Click here to Send Antrox a Private Message Find more posts by Antrox Add Antrox to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Walter
dsy adminz

User info:
Registered: Mar 2002
Posts: 5304 (0.61 al dì)
Location: Milano 90% - Valle Camonica 10%
Corso: Magistrale in Informatica
Anno: fine!
Time Online: 99 Days, 4:23:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Avvia ntsysv (se è installato) e controlla che postgresql sia riportato nell'elenco dei servizi avviabili automaticamente.

__________________
"Ragione e passione sono timone e vela della nostra anima navigante." - Kahlil Gibran
"Senza musica la vita sarebbe un errore." - Friedrich Nietzsche

05-11-2003 14:59
Click Here to See the Profile for Walter Click Here to See the Blog of Walter Click here to Send Walter a Private Message Visit Walter's homepage! Find more posts by Walter Add Walter to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 21:24.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.062 seconds (66.12% PHP - 33.88% MySQL) con 22 query.