Redis-cli安装
首先,Redis官网下载安装包,地址:https://redis.io
直接选择下载最新稳定版本即可
下载后,需要移动到/usr/local文件夹下
终端进入Redis文件夹下
/usr/local/redis-5.0.8
编译安装Redis
sudo make install
安装成功后,输入redis-server
启动redis
到此,Redis安装完成,可以尝试一下,Redis是否已经启动成功
终端输入'redis-cli',若启动成功则自动连接本地Redis库
Redis客户端可视化
正式版本下载是付费的,但在GitHub开源,可下载到本地自己编译
GitHub源码下载地址:
https://github.com/uglide/RedisDesktopManager/releases
Build on OS X
- Install Xcode with Xcode build tools.
- Install Homebrew.
- Copy
cd ./src && cp ./resources/Info.plist.sample ./resources/Info.plist
. - Building RDM dependencies require i.a.
openssl
,cmake
andpython3
. Install them:brew install openssl cmake python3
- Install Python requirements
pip3 install -t ../bin/osx/release -r py/requirements.txt
- Install Qt 5.9. Add Qt Creator and under Qt 5.9.x add Qt Charts module.
- Open
./src/rdm.pro
in Qt Creator. - Run build.
Build on Windows
- Install Visual Studio 2017 Community Edition.
- Install Qt 5.9.
- Go to
3rdparty/qredisclient/3rdparty/hiredis
and apply the patch to fix compilation on Windows:git apply ../hiredis-win.patch
- Go to the
3rdparty/
folder and install zlib withnuget
:nuget install zlib-msvc14-x64 -Version 1.2.11.7795
- Install Python 3.7 amd64 to
C:Python37-x64
. - Install Python requirements
pip3 install -r src/py/requirements.txt
. - Open
./src/rdm.pro
in Qt Creator. Choose theDesktop Qt 5.9.x MSVC2017 64bit > Release
build profile. - Run build. (Just hit
Ctrl-B
)
当然,也可以直接下载别人已经编译好的。