1

我正在尝试在本地 VM 上的 BOSH-lite 中部署 hadoop-release,同时部署我得到Error while reserving job: PG:: Error: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on 5432?

4

1 回答 1

0

PostgreSQL似乎没有在您的 BOSH lite 上运行。我想检查一下。能否请您ssh vcap@192.168.50.4(密码c1oudc0w)键入ss -ltn并确认 postgres 端口(5432)已绑定:

LISTEN      0    128                 127.0.0.1:5432        *:*

并且 postgres 正在运行ps auxwww | grep postgres

vcap      1453  0.1  0.1  56728  7344 ? S<   13:30   0:00 /var/vcap/data/packages/postgres/4b9f6514001f7c3f7d4394920d6aced9435a3bbd-6cb375e19ce352db095a4b18cf4c56b2bf9b952f/bin/postgres -D /var/vcap/store/postgres -h 127.0.0.1 -p 5432
vcap      1566  0.0  0.0  56728  3368 ? S<s  13:30   0:00 postgres: writer process
vcap      1567  0.0  0.0  56728  2280 ? S<s  13:30   0:00 postgres: wal writer process
vcap      1568  0.0  0.0  57688  4600 ? S<s  13:30   0:00 postgres: autovacuum launcher process
vcap      1569  0.0  0.0  19772  3012 ? S<s  13:30   0:00 postgres: stats collector process
vcap      1845  0.0  0.1  58880  9204 ? S<s  13:30   0:00 postgres: bosh bosh 127.0.0.1(36956) idle
于 2016-07-20T13:37:47.857 回答