Redis安装

2022-05-09 21:33:03 浏览数 (1)

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

  1. Install Xcode with Xcode build tools.
  2. Install Homebrew.
  3. Copy cd ./src && cp ./resources/Info.plist.sample ./resources/Info.plist.
  4. Building RDM dependencies require i.a. openssl, cmake and python3. Install them: brew install openssl cmake python3
  5. Install Python requirements pip3 install -t ../bin/osx/release -r py/requirements.txt
  6. Install Qt 5.9. Add Qt Creator and under Qt 5.9.x add Qt Charts module.
  7. Open ./src/rdm.pro in Qt Creator.
  8. Run build.

Build on Windows

  1. Install Visual Studio 2017 Community Edition.
  2. Install Qt 5.9.
  3. Go to 3rdparty/qredisclient/3rdparty/hiredis and apply the patch to fix compilation on Windows: git apply ../hiredis-win.patch
  4. Go to the 3rdparty/ folder and install zlib with nuget: nuget install zlib-msvc14-x64 -Version 1.2.11.7795
  5. Install Python 3.7 amd64 to C:Python37-x64.
  6. Install Python requirements pip3 install -r src/py/requirements.txt.
  7. Open ./src/rdm.pro in Qt Creator. Choose the Desktop Qt 5.9.x MSVC2017 64bit > Release build profile.
  8. Run build. (Just hit Ctrl-B)

当然,也可以直接下载别人已经编译好的。

0 人点赞