2

ローカル マシンで完全に動作するノード js サーバーがあります。サーバーでのセットアップ中に、次のエラーがスローされます:接続が拒否されました。

詳細は次のとおりです。

pg_config = "postgres://postgres@localhost:5433/crda_test"; 
or pg_config = "postgres://postgres@::1:5433/crda_test"; 
or pg_config = "postgres://postgres@127.0.0.1:5433/crda_test"; 

postgresql について:

Version: 9.6 postgresql 
psql -U postgres  -h localhost  -p 5433 (This works perfectly fine)
psql -U postgres  -h ::1  -p 5433 (This works perfectly fine)
psql -U postgres  -h 127.0.0.1  -p 5433 (This works perfectly fine)

このコマンドの出力を以下に示します。

sudo lsof -n -u postgres |grep LISTEN (以下の出力)

postgres 15072 postgres    3u  IPv6           15677592      0t0      TCP [::1]:5433 (LISTEN)
postgres 29773 postgres    3u  IPv6           15519790      0t0      TCP [::1]:5435 (LISTEN)

このコマンドは、ポートがリッスンしていることと、リクエストを作成できない理由を示しています。誰かがこれに光を当てることができれば、とても助かります。以下は、リモート マシンでサーバーを実行中のエラーです。 ここにイメージの説明を入力してください

4

0 に答える 0