001-redis安装、window版、mac上集群安装
2023-09-14 09:08:48 时间
一、参考地址
官方地址:https://redis.io/
Remote Dictionary Service」的首字母缩写,也就是「远程字典服务」
windows版本【学习使用】:https://github.com/MicrosoftArchive/redis
1.1、redis用途
缓存、分布式锁、巧用hash、zset、list等
二、windows版redis使用
1.解压目录
2.在cmd下进入文件夹:
redis-server redis.windows.conf
如果启动失败,可能问题
提示:QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.: unknown error
。原因是内存分配的问题。解决方法有两个
第一:启动的时候使用--maxmemory
命令限制Redis的内存:
redis-server redis.windows.conf --maxmemory 200m
第二种方法就是修改配置文件redis.windows.conf
:
maxmemory 209715200 【单位是字节】后再运行:redis-server redis.windows.conf
客户端:redis-cli.exe,运行查看即可
3.redis服务
redis-server.exe --service-install redis.windows.conf --loglevel verbose redis-server --service-start redis-server --service-stop
4.启动多个实例
redis-server --service-install –service-name redisService1 –port 10001 redis-server --service-start –service-name redisService1 redis-server --service-install –service-name redisService2 –port 10002 redis-server --service-start –service-name redisService2 redis-server --service-install –service-name redisService3 –port 10003 redis-server --service-start –service-name redisService3
5.卸载
redis-server --service-uninstall
6.桌面端
下载地址:https://redisdesktop.com/download
三、mac上docker集群
009-docker-安装-redis:5.0.3-单点配置、集群配置
直接安装方式
# mac
> brew install redis
# ubuntu
> apt-get install redis
# redhat
> yum install redis
# 运行客户端
> redis-cli
相关文章
- redis 主从模式,sentinel哨兵模式,cluster集群模式 简介
- Linux下安装redis
- Centos7.2下安装redis&通用键值命令
- 【荐】PHP Session和Cookie,Session阻塞,Session垃圾回收,Redis共享Session,不推荐Memcached保存Session
- Redis5.0版本以上安装Redis单机多实例集群
- Redis安装及主从配置
- 运维基础之Redis(1)简介、安装、使用
- centos安装redis
- redis生产环境下部署lua脚本
- 看故事学Redis:再不懂,我怀疑你是假个开发
- centos7 shell 安装docker redis mongodb 等
- docker容器里面安装php的redis扩展
- Redis基础、高级特性与性能调优
- Redis 杂记(安装,conf,还原rdb,查看key过期时间)
- Redis 与 string 相关的常用命令
- 【Redis入门篇】| 基于Centos7的Redis安装与启动(文末福利免费送书)
- 【中间件】Redis与MySQL双写一致性如何保证?--缓存和数据库在双写场景下一致性是如何保证的
- Redis安装报错:zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
- 【Linux系列】Linux查看Redis版本信息
- Centos7 安装 Redis 5.0.9
- Docker 安装 Redis