Re: Cluster restart

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Hombakazi Cynthia Jozela <hombakazij(at)yahoo(dot)com>
Cc: "pgsql-students(at)postgresql(dot)org" <pgsql-students(at)postgresql(dot)org>
Subject: Re: Cluster restart
Date: 2013-07-02 07:41:20
Message-ID: CABUevExXt2ucXYcmVTJbsX2o0D7snbmDF2Dkp4vWR1b6Rw57Sg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-students

On Mon, Jul 1, 2013 at 10:47 PM, Hombakazi Cynthia Jozela
<hombakazij(at)yahoo(dot)com> wrote:
> I am new in Postgresql, and as a start,I just I attended a short postgresql
> course from EnterpriseDB, but unfortunately I did not know Linux at all as I
> have been on windows , but I had no choice as it was rendered using Linux,
> so I am just testing my knowledge as I will be taking an online course very
> soon and I am stuck.
>
> I wanted to restart postgres cluster after I made changes on
> postgresql.conf, a propt for the postgres password appears, i provide it and
> i know its correct I even reserted it but i get the message that "sorry, try
> again" . What could I possible be doing wrong?
>
> this is what I did:
> [postgres(at)localhost ~]$ vi /opt/PostgreSQL/9.2/data/postgresql.conf to
> change conf file and I successfully did it
>
> then
>
> [postgres(at)localhost ~]$ /opt/PostgreSQL/9.2/scripts/serverctl.sh restart
>
> then it says
> [sudo] password for postgres:
>
>
> I could not move on from here.

First, I'd strongly recommend that you use the packaged versions when
you are on a supported platform such as Ubuntu - they tend to
integrate a lot better than the oneclick ones. See
http://www.postgresql.org/download/linux/ubuntu/ for the recommended
installation methods.

Second, it looks like that command is designed to be run either as
root or as your own account, bt you're running it as user "postgres".
Try running it under the correct user account. (But that's is all
guessing as it's a non-standard install)

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-students by date

  From Date Subject
Next Message Hombakazi Cynthia Jozela 2013-07-04 09:38:26 pg_ctl: could not start the server
Previous Message Hombakazi Cynthia Jozela 2013-07-02 04:47:15 Re: Cluster restart