postgresql 如何在 OX Sierra 上 brew 卸载 postgres

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41844331/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 06:21:51  来源:igfitidea点击:

How to brew uninstall postgres on OX Sierra

postgresqlmacoshomebrewuninstallmacos-sierra

提问by stackjlei

Reading from the here, I want to uninstall postgres completely with homebrew and have used brew uninstall postgresqlbut I get this response.

这里阅读,我想用自制软件完全卸载 postgres 并使用过,brew uninstall postgresql但我得到了这个回应。

No such keg: /usr/local/Cellar/postgresql

I know postgres is running because when I run ps auxwww | grep postgresI see /usr/local/opt/postgresql94/bin/postgres -D /usr/local/var/postgres. What am I doing wrong? I have mac Sierra

我知道 postgres 正在运行,因为当我运行时ps auxwww | grep postgres我看到/usr/local/opt/postgresql94/bin/postgres -D /usr/local/var/postgres. 我究竟做错了什么?我有 mac 塞拉利昂

回答by Prashant Pokhriyal

I installed postgres using homebrew. I uninstalled it using the following steps:

我使用自制软件安装了 postgres。我使用以下步骤卸载了它:

Run the following command and look for the correct name something like postgresql94. Name may varies, you have to check accordingly.

运行以下命令并查找正确的名称,例如postgresql94. 名称可能会有所不同,您必须相应地进行检查。

brew list

After finding the correct name, run the following command to uninstall postgres:

找到正确的名称后,运行以下命令卸载postgres:

sudo brew uninstall postgresql94

That should do the uninstall.

那应该做卸载。



Shortcut command for the same is

相同的快捷命令是

sudo brew list | grep postgres | xargs brew uninstall