Uninstall Redis on Mac OSX. Older version is running after installing update

☆樱花仙子☆ 提交于 2020-06-24 16:02:09

问题


On a mac, how to I find the older version of Redis and uninstall it completely?

I'm using OSX and installed Redis using the following command brew install redis. The version installed by brew states redis-3.0.7.

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.

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

回答1:


Checkout these directories:

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

If these binaries were installed through make install from Redis source code you can simply remove them.




回答2:


Delete Redis folders using the following command

rm /usr/local/bin/redis-*


来源:https://stackoverflow.com/questions/36130310/uninstall-redis-on-mac-osx-older-version-is-running-after-installing-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!