Назад | Перейти на главную страницу

Статус службы PostgreSQL активен (завершен), но я могу подключиться

Я установил PostgreSQL (9.5) на новую виртуальную машину Ubuntu (16.04) на GCD. Статус услуги активен (завершен). Выход sudo systemctl status postgresql является:

● postgresql.service - PostgreSQL RDBMS
   Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
   Active: active (exited) since Tue 2020-04-14 17:50:34 UTC; 25min ago
  Process: 2291 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 2291 (code=exited, status=0/SUCCESS)
    Tasks: 0
   Memory: 0B
      CPU: 0
   CGroup: /system.slice/postgresql.service

Apr 14 17:50:34 c systemd[1]: Starting PostgreSQL RDBMS...
Apr 14 17:50:34 c systemd[1]: Started PostgreSQL RDBMS.

Однако pg_lsclusters показывает, что кластер находится в сети.

Ver Cluster Port Status Owner    Data directory               Log file
9.5 main    5432 online postgres /var/lib/postgresql/9.5/main /var/log/postgresql/postgresql-9.5-main.log

Я также могу войти в систему в интерактивном режиме и использовать psql. Ошибки нет.

Пытаюсь настроить масштабный лайт (https://github.com/blindsidenetworks/scalelite/blob/master/docker-README.md)

Когда я бегу

статус systemctl scalelite-api.service scalelite-nginx.service

Я получаю следующую ошибку:

could not connect to server: Connection refused
        Is the server running on host "localhost" (127.0.0.1) and accepting
        TCP/IP connections on port 5432?
could not connect to server: Address not available
        Is the server running on host "localhost" (::1) and accepting
        TCP/IP connections on port 5432?
Couldn't create 'scalelite' database. Please check your configuration.
rake aborted!
PG::ConnectionBad: could not connect to server: Connection refused
        Is the server running on host "localhost" (127.0.0.1) and accepting
        TCP/IP connections on port 5432?
could not connect to server: Address not available
        Is the server running on host "localhost" (::1) and accepting
        TCP/IP connections on port 5432?

Пожалуйста, помогите мне с этим, а также что означает этот статус службы активен (закрыт).

Извините за неполную / плохую информацию. Я новичок в этой области.