После ввода «sudo -u postgres psql» (postgresql 11, Ubuntu)
psql: could not connect to server: No such file or directory Is the server
running locally and accepting connections on Unix domain socket
"/var/run/posunix_socket_directories = '/var/run/postgresql' tgresql/.s.PGSQL.5432"?
Я проверил postgresql -status и увидел:
postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor prese
Active: active (exited) since Tue 2020-06-16unix_socket_directories = '/var/run/postgresql' unix_socket_directories = '/var/run/postgresql' 18:38:41 MSK; 10min ago
Process: 9568 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 9568 (code=exited, status=0/SUCCESS)
16 18:38:41 andrej-B360-AORUS-GAMING-3-WIFI systemd[1]: Starting PostgreSQL
16 18:38:41 andrej-B360-AORUS-GAMING-3-WIFI systemd[1]: Started PostgreSQL R
unix_socket_directories = '/var/run/postgresql'
Итак, статус успешен.
В postgresql .conf
unix_socket_directories = '/var/run/postgresql'
Также я перезапустил postgresql, но безуспешно ...