所以我执行了命令 sudo apt-get purge postgresql-9.* 现在,我只有10.5版。问题是,我不能再连接到我的数据库使用PGAdmin,而且,我所有的C程序连接到postgres数据库不能再连接!
sudo apt-get purge postgresql-9.*
我试着在网上查找修改过的文件 pg_hba.conf postgresql.conf 允许所有连接从端口5432,甚至重新开放端口5432,仍然没有!
pg_hba.conf
postgresql.conf
sudo -i -u postgres psql ....