Instalei o postgresql 9.3 no lubuntu e ao conectar a primeira vez, funcionou. Porém, já não consigo conectar no server aprensentando a mensagem
Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432.
As configurações nos arquivos pg_hba.conf e postgresql.conf estão corretas.
Ao verificar a porta que o postgresql esta utilizando pelo comando $ sudo -u postgres psql -c "SHOW port;" dá a seguinte mensagem
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
E essa pasta não contem nada, muito menos o arquivo .s.PGSQL.5432.
Rodado tbm este comando $ sudo lsof -U -a -c postgres que retornou
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
Como faço para corrigir esse problema?
F.Torres
Super Participante
Registrado
462 Mensagens
38 Curtidas
PostgreSQL - Problemas com socket .s.PGSQL.5432
#1 Por F.Torres
06/08/2017 - 10:49