Обсуждение: Re: how to test whether postgres server is running?

Поиск
Список
Период
Сортировка

Re: how to test whether postgres server is running?

От
Reynard Hilman
Дата:
thanks for the quick reply Darren, but you can't do this if the web
server is running on a different server than the database, right?

- reynard

>netstat -anp | grep postmaster
>
>This will tell you if postmater is listening on the port.
>
>If you do not have root access then
>
>netstat -an | grep 5432
>
>HTH
>
>Darren
>
>


Re: how to test whether postgres server is running?

От
Darren Ferguson
Дата:
If you have command line access to the machine with the Database you can
run the command from there.

Sorry about that i should have read the mail more

Darren

On Thu, 27 Mar 2003, Reynard Hilman wrote:

>
> thanks for the quick reply Darren, but you can't do this if the web
> server is running on a different server than the database, right?
>
> - reynard
>
> >netstat -anp | grep postmaster
> >
> >This will tell you if postmater is listening on the port.
> >
> >If you do not have root access then
> >
> >netstat -an | grep 5432
> >
> >HTH
> >
> >Darren
> >
> >
>

--
Darren Ferguson