前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Redis安装

Redis安装

作者头像
沈宥
发布2022-05-09 21:33:03
3380
发布2022-05-09 21:33:03
举报
文章被收录于专栏:从头开始学习测试开发

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)

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

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2020-04-14,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 从头开始学习测试开发 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Build on OS X
  • Build on Windows
相关产品与服务
云数据库 Redis
腾讯云数据库 Redis(TencentDB for Redis)是腾讯云打造的兼容 Redis 协议的缓存和存储服务。丰富的数据结构能帮助您完成不同类型的业务场景开发。支持主从热备,提供自动容灾切换、数据备份、故障迁移、实例监控、在线扩容、数据回档等全套的数据库服务。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档