Redis在windows下的配置(在windows-64下安装redis,请参考微软redis的github:https://github.com/MSOpenTech/redis/releases) 下面是windows32的配置 下载地址http://files.cnblogs.com/files/cuiwenyuan/Redis-3.2.100-Windows-32.zip 假设安装目录为E:\wrcold520\Redis-3.2.100-Windows-32\Redis
1、启动没有参数配置的Redis: (1)双击redis-server.exe (2)在cmd命令窗口下运行redis-server或者redis-server.exe # 示例: Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server [6788] 10 Feb 13:47:38.750 # Warning: no config file specified, using the defaul t config. In order to specify a config file use redis-server /path/to/redis.conf [6788] 10 Feb 13:47:38.753 # Warning: 32 bit instance detected but no memory lim it set. Setting 3 GB maxmemory limit with 'noeviction' policy now. _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 3.0.504 (00000000/0) 32 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 6788 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' [6788] 10 Feb 13:47:38.755 # Server started, Redis version 3.0.504 [6788] 10 Feb 13:47:38.755 * DB loaded from disk: 0.000 seconds [6788] 10 Feb 13:47:38.756 * The server is now ready to accept connections on po rt 6379 2、带配置文件启动Redis 在cmd命令窗口下运行:redis-server redis.windows.conf或者redis-server.exe redis.windows.conf # 示例: Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server redis.windows.conf [7540] 10 Feb 13:43:07.046 # Warning: 32 bit instance detected but no memory lim it set. Setting 3 GB maxmemory limit with 'noeviction' policy now. _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 3.0.504 (00000000/0) 32 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 7540 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' [7540] 10 Feb 13:43:07.047 # Server started, Redis version 3.0.504 [7540] 10 Feb 13:43:07.048 * DB loaded from disk: 0.000 seconds [7540] 10 Feb 13:43:07.048 * The server is now ready to accept connections on po rt 6379 3、将redis加入windows服务 (1)在cmd命令窗口下运行:redis-server.exe --service-install redis.windows.conf --loglevel verbose ### 示例: Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。 E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server.exe --service-install r edis.windows.conf --loglevel verbose [7776] 10 Feb 13:56:21.950 # Granting read/write access to 'NT AUTHORITY\Network Service' on: "E:\wrcold520\Redis-3.2.100-Windows-32\Redis" "E:\wrcold520\Redis-3 .2.100-Windows-32\Redis\" [7776] 10 Feb 13:56:21.950 # Redis successfully installed as a service. (2)启动redis服务 在cmd命令窗口下运行:redis-server --service-start
### 示例: E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server --service-start [6780] 10 Feb 14:05:18.046 # Redis service successfully started.
(3)关闭redis服务 在cmd命令窗口下运行:redis-server --service-stop
### 示例: E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server --service-stop [1660] 10 Feb 14:05:28.098 # Redis service successfully stopped. 4、移除redis的windows服务 在cmd命令窗口下运行:redis-server --service-uninstall ### 示例: E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server --service-uninstall [4744] 10 Feb 13:59:18.735 # Redis service successfully uninstalled.
开启远程访问
Redis安装完之后,在服务中可以看到对应的Redis服务,打开属性,可以看到“可执行文件的路径”是:”D:\Program Files\Redis\redis-server.exe” –service-run “D:\Program Files\Redis\redis.windows-service.conf”
开启Redis远程访问的步骤如下:
打开redis.windows-service.conf 找到“bind 127.0.0.1”改为bing 0.0.0。0 找到“protected-mode yes”并改为“protected-mode no”
增加集群部署后,出现如下bug
@ERR Unsupported CONFIG parameter: notify-keyspace-events
Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR Unsupported CONFIG parameter: notify-keyspace-events at redis.clients.jedis.Protocol.processError(Protocol.java:113) at redis.clients.jedis.Protocol.process(Protocol.java:131) at redis.clients.jedis.Protocol.read(Protocol.java:200) at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:285) at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:184) at redis.clients.jedis.Jedis.configSet(Jedis.java:2797) at org.springframework.data.redis.connection.jedis.JedisConnection.setConfig(JedisConnection.java:616) ... 30 more
解决方案:
更换redis版本为2.8以上
@EnableRedisHttpSession requires Redis 2.8.0+
Redis 安装系统服务报错 HandleServiceCommands: system error caught. error c ode=1073, message = CreateS
原因:系统服务中已经存在
解决办法:
1)先卸载服务:
redis-server –service-uninstall
2)然后再安装:
redis-server–service-install redis.windows.conf
启停:
启动服务:redis-server –service-start
停止服务:redis-server –service-stop
相关推荐
本压缩包内置3主3从2哨兵,集群模式开箱即用,哨兵模式需要修改主从配置,详见压缩包内的说明文档。本压缩包内置3主3从2哨兵,集群模式开箱即用,哨兵模式需要修改主从配置,详见压缩包内的说明文档。
本文件包经过本人亲测能用,支持nginx1.8.1和tomcat7.0.63和Redis-x64-3.2.100版, 包含tomcat集群redis会话共享的依赖jar包,包含有2.1.0和2.7.2两个版本,配置方式稍微有点差别,两个版本不兼容。 2.1.0版包含 ...
所以只使用了一主两从的配置,分别在同一域的不同服务器中(192.xx.xx.01, 192.xx.xx.02,192.xx.xx.03),其中192.xx.xx.01为主服务器,其它两台服务器做为从服务器,本文中所使用的Redis版本为3.2.100,可以直接在网站...
Redis-x64-3.2.100 windows 安装包
Redis-x64-3.2.100免安装版配置+linux版,包含windows版和linux版
Windows 环境安装Redis压缩包(已编译好) 请注意是32位 解压后运行对应程序和配置文件即可,详细安装方法和操作步骤可以参考本人博客
通过 CONFIG SET 设置 oom-score-adj-value 或从配置文件加载 oom-score-adj-value 后,CONFIG REWRITE 将生成损坏的配置文件,这会导致 Redis 无法启动 修复 MacOS 上的 redis-cli --pipe 问题 修复 HKEYS/HVAL
在 large intsets 的 COPY 命令中出现整数溢出(CVE-2021-29478):Redis 6.2 中的一个整数溢出漏洞可被利用来破坏堆并可能导致远程代码执行。该漏洞涉及改变默认的 set-max-intset-entries 配置值,创建一个由整数值...
windows 版的redis,里面附带的文件已经做了简单的翻译,配置文件有部分翻译了。
其次还有Redis 3.2+Nginx1.14以及2款redis可视化管理工具及dos黑窗口工具RunHiddenCon。其中已经配置好了PHP-nts + nginx +redis的环境,只需要按里面的说明修改参数就可使用。windows下开发phper的福利,让你能快速...
redis windows版本,外网现在太慢了Redis-x64-3.2.100 .msi,配合安装配置说明
配置说明:找到redis.windows-service.conf,找到含有requirepass字样的地方,追加一行,输入requirepass 12345。这是访问Redis时所需的密码,一般测试情况下可以不用设定密码。不过,即使是作为本地访问,也建议...
windows版redis-x64-3.2,解压即可。redis.windows-service.conf启用此配置即可。
可以在 Redis 目录下,启动 cmd,输入 redis-cli 启动客户端,连接服务器。 三、部署 Redis 服务 虽然已经启动了 Redis 服务,但是只要一关闭 cmd 窗口,Redis 服务就关闭了。因此,需要将 Redis 设置为一个 ...
windows免配置环境redis可直接使用 客户端与服务端双击即可启动
windows平台用hiredis封装的简单增删改查以及订阅功能的小demo,运行之前电脑安装redis并自己百度配置好环境 我用的3.2.100版本
下载地址:https://github.com/MicrosoftArchive/redis/releases/tag/win-3.2.100 (redis官网没有window版本所以需要在github上下载); 装Redis-x64-3.2.100.msi,双击刚下载好的msi格式的安装包(Redis-x64-3.2....
1.5 配置 3 2 Redis数据存储 4 2.1 RDB快照 4 2.2 AOF日志 4 2.3 数据导入 5 3 Redis数据类型 5 3.1 string类型 6 3.2 hash类型 6 3.3 list类型 7 3.4 set类型 7 3.5 sorted set类型 7 4 开发指南 8 4.1 Redis + ...
北斗物联网监控平台Windows开发环境搭建 本文档主要介绍了北斗...北斗物联网监控平台Windows开发环境的搭建需要安装 JDK、Redis、RabbitMQ 和 IntelliJ IDEA 四个关键组件,并搭建 Web 后台和通信网关两个核心组件。