首页 > 解决方案 > MAC - 如何查找和删除 postgres 服务器?

问题描述

我找不到杀死或删除我的 postgresql 服务器的方法。

postgres -V

显示版本是 9.5.3 但我在我的 mac 中找不到路径文件。我试过lsof -i :5432了,结果如下

 COMMAND   PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
 postgres 1403 jk0819    5u  IPv6 0x35013bd948ad16e1      0t0  TCPlocalhost:postgresql (LISTEN)                                  
 postgres 1403 jk0819    6u  IPv4 0x35013bd9438f8821      0t0  TCP localhost:postgresql (LISTEN)

但是当我运行kill -9 1403时它什么也不做。谁能帮我?

谢谢你。

标签: djangopostgresqlmacos

解决方案


推荐阅读