X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7A5F1D1B4E6 for ; Sat, 18 Oct 2003 19:48:17 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 26225-10 for ; Sat, 18 Oct 2003 16:47:48 -0300 (ADT) Received: from phpnet.org (195-137-249-122.ovanet.net [195.137.249.122]) by svr1.postgresql.org (Postfix) with SMTP id D89CFD1B4EF for ; Sat, 18 Oct 2003 16:47:45 -0300 (ADT) Received: (qmail 4930 invoked by uid 502); 18 Oct 2003 19:47:42 -0000 Received: from unknown (HELO moissac.leveque.fr) (81.56.193.138) by 10.0.0.2 with SMTP; 18 Oct 2003 19:47:42 -0000 Received: from net6d.com (IDENT:100@moissac.leveque.fr [192.168.150.177]) by moissac.leveque.fr (8.12.8/8.12.9/Bruno LEVEQUE - 31/08/2003) with ESMTP id h9IJfGEn010408; Sat, 18 Oct 2003 21:41:16 +0200 Message-ID: <3F91975C.70300@net6d.com> Date: Sat, 18 Oct 2003 21:41:16 +0200 From: Bruno LEVEQUE User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030827 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Eric M. Wulff" Cc: Bruno LEVEQUE , pgsql-admin@postgresql.org Subject: Re: postgres installed via rpms -can't run postmaster or postgres References: <1066466353.1450.10.camel@ewulff> <3F913E3F.6030309@net6d.com> <1066498319.2244.47.camel@ewulff> In-Reply-To: <1066498319.2244.47.camel@ewulff> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/216 X-Sequence-Number: 10777 Eric M. Wulff wrote: > Great! I very much appreciate your help. I'm unclear on what I need to > set PGDATA or the -D option with in order to run postmaster. Any idea? The line you need with postmaster should be like : postmaster -i -D /PATH/WHERE/FIND/DATA/FILES -S The /PATH/WHERE/FIND/DATA/FILES must be /var/lib/pgsql/data/ (or /var/lib/pgsql) The -i is for allowing clients to connect via TCP/IP The -S is fot separating postmaster of the console launching it. Bruno > > Here is what I'm trying and the errors given... > > $ postmaster > > "postmaster does not know where to find the database system data. > You must specify the directory that contains the database system > either by specifying the -D invocation option or by setting the > PGDATA environment variable." > > So I tried > > $ postmaster -D /etc/rc.d/init.d" > > "FATAL: data directory /etc/rc.d/init.d has group or world access; > permissions should be u=rwx (0700)" > > So I changed the permissions but that didn't work either. > > again, many thx > Eric > > > > > On Sat, 2003-10-18 at 06:21, Bruno LEVEQUE wrote: > >>With the postgresql-server-7.3-2PGDG.i386.rpm, you have installed a >>file etc/rc.d/init.d/postgresql, >>if you run it like postgresql start, you must start postmaster and so >>you can connect. >>(I am not a specialist of RH so may be there is other thinks to know) >> >>Bruno >> >> >>Eric M. Wulff wrote: >> >> >>>Hi, I am relatively new to Linux and just installed postgres via rpms. >>>I think. However, I can't for the life of me figure out how to start up >>>postmaster or psql. >>> >>>psql - I keep getting the following error when running psql... >>> >>>"psql: could not connect to server: No such file or directory >>> Is the server running locally and accepting >>> connections on Unix domain socket "/tmp/.s.PGSQL.1234"?" >>> >>>How do I find out if the server is running locally and accepting >>>connections on Unix domain socket? >>> >>>postmaster - I keep getting the following error when trying to start >>>postmaster... >>> >>>"postmaster does not know where to find the database system data. >>>You must specify the directory that contains the database system >>>either by specifying the -D invocation option or by setting the >>>PGDATA environment variable." >>> >>>Okay, set it to what? man and postgres docs are of little help. Any >>>help is much appreciated. Following are the rpm's I ran >>>redhat-install-packages on. I got them from a mirror off >>>postgresQl.org... >>> >>>ostgresql-7.3-2PGDG.i386.rpm >>>postgresql-python-7.3-2PGDG.i386.rpm >>>postgresql-contrib-7.3-2PGDG.i386.rpm >>>postgresql-server-7.3-2PGDG.i386.rpm >>>postgresql-devel-7.3-2PGDG.i386.rpm >>>postgresql-docs-7.3-2PGDG.i386.rpm >>>postgresql-jdbc-7.3-2PGDG.i386.rpm >>>postgresql-libs-7.3-2PGDG.i386.rpm >>>postgresql-pl-7.3-2PGDG.i386.rpm >>> >>>Oh, and another thing I'm confused about is... I tried to install these >>>in /usr/local/bin, that's where the rpms are, but they wound up in >>>/usr/lib. Any idea why that might be? I rpm'd from /usr/local/bin >>> >>>many thx >>>Eric >>> >>> >>> >>> >>> >>>---------------------------(end of broadcast)--------------------------- >>>TIP 8: explain analyze is your friend >>> >>> >>> >> >>-- >>Bruno LEVEQUE >>System Engineer >>SARL NET6D >>bruno.leveque@net6d.com >>http://www.net6d.com >> >> > > > > -- Bruno LEVEQUE System Engineer SARL NET6D bruno.leveque@net6d.com http://www.net6d.com