在Mac OSX上卸载Redis.安装更新后,较旧的版本正在运行 [英] Uninstall Redis on Mac OSX. Older version is running after installing update
问题描述
在Mac上,如何找到较旧版本的Redis并将其完全卸载?
我正在使用OSX,并使用以下命令brew install redis
安装了Redis. brew状态redis-3.0.7
安装的版本.
I'm using OSX and installed Redis using the following command brew install redis
. The version installed by brew states redis-3.0.7
.
但是,当我运行命令:redis-server
时,输出表明我正在运行Redis 2.6.9 (00000000/0) 64 bit
.我不知道这个版本是从哪里安装的.
However, when I run the command: redis-server
the output states it's I'm running Redis 2.6.9 (00000000/0) 64 bit
. I have no idea where this version was installed from.
我尝试直接下载redis并使用sudo make uninstall
,但出现此错误:
I have tried to download redis directly and use sudo make uninstall
but got get this error:
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)
如果这些二进制文件是通过Redis源代码中的make install
安装的,则只需删除它们即可.
If these binaries were installed through make install
from Redis source code you can simply remove them.
这篇关于在Mac OSX上卸载Redis.安装更新后,较旧的版本正在运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!