Postgresql psql:服务器意外关闭了连接

Postgresql psql:服务器意外关闭了连接,postgresql,vagrant,virtualbox,ubuntu-16.04,psql,Postgresql,Vagrant,Virtualbox,Ubuntu 16.04,Psql,我有一个带有Postgres的应用程序,它有一个VirtualBox机器,我用Vagrant控制它。 我想是因为今天发生了不幸的软件包更新,我无法再连接数据库了。 当我跑步时: psql -U password -d database -h localhost -p 9001 我得到以下错误: psql: server closed the connection unexpectedly This probably means the server terminated abnormally

我有一个带有
Postgres
的应用程序,它有一个
VirtualBox
机器,我用
Vagrant
控制它。 我想是因为今天发生了不幸的软件包更新,我无法再连接数据库了。 当我跑步时:

psql -U password -d database -h localhost -p 9001
我得到以下错误:

psql: server closed the connection unexpectedly 
This probably means the server terminated abnormally
before or while processing the request.
我重新安装/升级了
Vagrant
VirtualBox
Postgres
,但没有结果

我一直在这里寻找答案,并按照其他用户的建议检查
postgresql.conf
pg_hba.config

在我的例子中,文件
postgresql.conf
已经有行了

listen_addresses = '*'
文件
pg_hba.config
也有以下记录:

host all all 0.0.0.0/0 md5
我的文件包含:

    config.vm.network "forwarded_port", guest: 6543, host: 9000
    config.vm.network "forwarded_port", guest: 5432, host: 9001


我花了好几个小时试图解决这个问题。

你们使用的是什么版本的postgre?我使用的是Postgres 9.6,这是强制性的