Re: Postgres: Installing as a service

From: CM J <postgres(dot)newbie(at)gmail(dot)com>
To: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres: Installing as a service
Date: 2009-04-13 08:05:58
Message-ID: d65fd1a40904130105v47da8b3m54c1440e2c57c0e6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

The following cmd can be used for installating postgres as a service:

pg_ctl.exe register -N <servicename> -U <user> -P <password> -D <datadir>

and "pgctl.exe unregister -N <servicename>" can be used to uninstall.

Thanks.

On Mon, Apr 13, 2009 at 12:15 PM, Craig Ringer
<craig(at)postnewspapers(dot)com(dot)au>wrote:

> CM J wrote:
> > Hi ,
> >
> > I have extracted postgres from postgres-noinstaller.zip file. How
> do
> > i install postgres as a service from cmd line ?
>
> Search: http://msdn.microsoft.com/
>
> You can use the `net' command to start/stop services. I don't recall the
> command(s) used to install them, if any, but you'll be able to find the
> info on MSDN.
>
> > Are there are any binaries
> > provided by postgres to install it as a service ?
>
> No.
>
> Why not use the MSI installer's silent mode?
>
> --
> Craig Ringer
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message sandiphw 2009-04-13 12:37:18 pgSql authentication problem with openLdap
Previous Message Thomas Kellerer 2009-04-13 07:20:21 Re: Postgres: Installing as a service