Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

881
Views
no se pudo conectar al servidor: conexión rechazada ¿El servidor se está ejecutando en el host... y acepta conexiones TCP/IP en el puerto 5432?

Acabo de implementar un Postgres/timescaleDB en Ubuntu en AWS.

Cuando hago ssh en mi VM postgres, puedo conectar pgsql a través de CLI.

 ubuntu@ip-172-31-35-57:~$ psql -U julien -h localhost db Password for user julien: psql (12.3 (Ubuntu 12.3-1.pgdg20.04+1)) SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off) Type "help" for help. db=>

También puedo ver que Postgres está escuchando

 ubuntu@ip-172-31-35-57:~$ sudo netstat -nlpute Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 101 46086 6152/systemd-resolv tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 20033 700/sshd: /usr/sbin tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 113 62083 20332/postgres tcp6 0 0 :::80 :::* LISTEN 0 68924 23549/apache2 tcp6 0 0 :::22 :::* LISTEN 0 20044 700/sshd: /usr/sbin udp 0 0 127.0.0.53:53 0.0.0.0:* 101 46085 6152/systemd-resolv udp 0 0 172.31.35.57:68 0.0.0.0:* 100 651337 6134/systemd-networ

Revisé ufw:

 ubuntu@ip-172-31-35-57:~$ sudo ufw status Status: inactive

También abrí completamente Grupos de seguridad.

Pero aún así, no puedo conectar mi base de datos postgres desde local.

Con un Postgres DB local, no tengo ningún problema (mi aplicación funciona)

que se me olvido???

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

  1. Compruebe listen_addresses en el archivo postgresql.conf conexiones remotas permitidas. Debería ser

    direcciones_escucha = '*'

  2. En el archivo pg_hba.conf, debe agregar la siguiente entrada

    alojar todo todo 0.0.0.0/0 md5

  3. Asegúrese de que no sea un problema de firewall.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!