我在 nginx 和 gunicorn 上有一个工作的 Django 站点,转储数据库的正确方法是什么?我是否需要禁用nginx,我只是尝试转储错误,无法连接到服务器:
pg_dump: [archiver (db)] connection to database "mydb" failed: could not connect to server: Connection refused
Is the server running on host "0.0.0.0" and accepting
TCP/IP connections on port 5432?
而不是 0.0.0.0 我的 ip。怎么做才对?提前致谢!