macos - 在 Mac OSX 上卸载 Redis。安装更新后运行旧版本

标签 macos redis homebrew

在 mac 上,如何找到旧版本的 Redis 并将其完全卸载?

我正在使用 OSX 并使用以下命令安装 Redis brew install redis。 brew 安装的版本为 redis-3.0.7

但是,当我运行命令时:redis-server 输出表明我正在运行 Redis 2.6.9 (00000000/0) 64 位。我不知道这个版本是从哪里安装的。

我尝试直接下载 redis 并使用 sudo make uninstall 但得到了这个错误:

cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make uninstall
make[1]: *** No rule to make target `uninstall'.  Stop.
make: *** [uninstall] Error 2

最佳答案

检查这些目录:

ls -al $(which redis-server)
ls -al $(which redis-cli)

如果这些二进制文件是通过 make install 从 Redis 源代码安装的,您可以简单地删除它们。

关于macos - 在 Mac OSX 上卸载 Redis。安装更新后运行旧版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36130310/

相关文章:

macos - OSX - Cocoa - 关闭工作表时出现异常

scala - 我需要一个 Scala 中的客户端库用于 Redis 集群

amazon-dynamodb - "brew install dynamodb-local"导致 "No formulae found in taps"

git - 我使用 Homebrew 软件时遇到的麻烦

macos - Docker & Postgres : Failed to bind tcp 0. 0.0.0:5432 地址已在使用中

macos - Cocoa:[self.view setWantsLayer:YES] 将该 View 置于其他 subview 之上?

macos - 使用 OS X JavaScript for Automation (JXA) 监听 "open location"Apple 事件

c# - Redis 插入哈希非常(!)慢?

logging - 记录 Redis 监控命令结果?

homebrew - 在 sonatype nexus 服务器中哪里可以找到日志文件,通过在 osx 上安装 brew