[請益] 外部電腦連線Synology NAS的Postgresql

作者: Darren37 (Nothing is everything)   2024-03-09 23:03:40
小弟寫的Line Bot因為有資料儲存的需求,所以之前都用Heroku,後來買了Nas後就用Cont
ainer Manager架設Postgresql。
架完後嘗試聯繫,pgAdmin用區網的IP都可以正常連線進DB,用DDNS的網址以PuTTY輸入DDN
S網址可以正常連線,唯獨用DDNS網址以pgAdmin連線卻會出現「connection timeout expi
red」,如果開啟SSH通道則會顯示「connection failed: server closed the connection
unexpectedly This probably means the server terminated abnormally before or wh
ile processing the request.」
因為對網路相關的知識完全沒概念,所以想請問問題出在哪,或是有沒有什麼方向可以給
我建議呢?
作者: changchichun (Eric Chang)   2024-03-11 09:17:00
你有考慮過你的pg_hba 要怎麼設定嗎?通通放行?

Links booklink

Contact Us: admin [ a t ] ucptt.com