Re: Canot access PostgreSQL via psql -h (Vmware Fusion)

From: Craig James <cjames(at)emolecules(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: CS DBA <cs_dba(at)consistentstate(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Canot access PostgreSQL via psql -h (Vmware Fusion)
Date: 2012-08-24 14:29:02
Message-ID: CAFwQ8re-O4JwnHzdJ259VXy8Q5mGodDtWUE3amoRtd5ENLhqvg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, Aug 24, 2012 at 7:08 AM, Kevin Grittner
<Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
> CS DBA <cs_dba(at)consistentstate(dot)com> wrote:
>
>> I've fired up 2 CentOS 6.2 VM's via vmware fusion 5 (on a mac).
>
>> psql -h 192.168.91.145
>> psql: could not connect to server: No route to host
>
> That problem has nothing to do with PostgreSQL; you might have
> better luck on a list related to the other technologies.
>
> FWIW, on Linux I would start with `netstat -plnt` to see if the
> process was listening on the expected port and host address.

Or even simpler, do

ifconfig

and make sure that you have the right IP address, followed by "ping
192.168.91.145" (assuming that's the right address) to see if your
network is even running. Another thing to try:

psql -h localhost

Craig

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2012-08-24 14:35:54 Re: Canot access PostgreSQL via psql -h (Vmware Fusion)
Previous Message Kevin Grittner 2012-08-24 14:08:34 Re: Canot access PostgreSQL via psql -h (Vmware Fusion)