问题描述
我安装了Postgresql 9.6
并升级了我的宝石。然后10.x
与9.6
一起安装,并设置了混乱的地方。
我备份的数据很少。我想摆脱两者,重新开始。我是使用以下方式卸载的:
brew uninstall postgresql@10
...并且postgresql
中没有brew list
。但是9.6
仍在运行,但未显示在此列表中。
如何杀死残余物并重新开始?这是来自top
的证据:
32147 postgres 0.0 00:00.13 1 0 8 1608K 0B 4696K 32147 105 sleeping *0[1] 0.00000 0.00000 14551
32140 postgres 0.0 00:00.04 1 0 8 1492K 0B 1748K 32140 105 sleeping *0[1] 0.00000 0.00000 14551
我知道杀死进程不会在以后解决启动问题。我已经记录了show all;
的输出,因此可以删除文件,但是不清楚在哪里寻找或在寻找什么。
解决方法
该应用正常运行,并且在terminal
中进行了一些其他删除:
sudo rm /etc/postgres-reg.ini
sudo rm -rf /Library/PostgreSQL/
一切都很好。