我一直遇到无法连接到数据库的问题:
psycopg2.OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting connections on Unix domain socket “/tmp/.s.PGSQL.5432”?
我做了一些阅读,这似乎是一个很常见的问题,大多数人通过检查端口是否正确来解决这个问题,即在他们的setup.py中将5432改为5433。但这似乎不是我的问题--在/opt/bitnami/postg