`
郑云飞
  • 浏览: 808896 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Redis3.2在windows下的配置

 
阅读更多

 

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

分享到:
评论

相关推荐

    Redis3.2(windows64位安装版).zip

    这个压缩包“Redis3.2(windows64位安装版).zip”提供了适用于Windows 64位系统的Redis 3.2版本。下面将详细介绍Redis 3.2在Windows上的安装过程以及其主要特性。 首先,Windows用户通常会通过安装程序来安装Redis。...

    redis3.2 redis3.2 redis3.2

    - `Redis on Windows.docx`和`Windows Service Documentation.docx`是关于在Windows环境下安装和配置Redis的详细指南,包含了如何设置服务、配置文件详解等内容。 - `Redis on Windows Release Notes.docx`包含了...

    redis3.2-windows-x64.rar

    在Windows环境下使用Redis 3.2,用户需要解压“redis3.2-windows-x64.rar”,通常包含以下组件: - `redis-server.exe`:Redis服务器进程,负责处理客户端的连接和数据存储。 - `redis-cli.exe`:Redis命令行客户端...

    windows 64 redis3,2

    以下是对 "windows 64 redis3.2" 版本的详细知识点解析: 1. **Redis 版本 3.2**: Redis 3.2 是 Redis 的一个重要版本,发布于2016年。这个版本引入了多项新功能和改进,如集合(Set)类型的有序性、流(Stream)...

    Redis-3.2.100-Windows集群配置版

    本资源"Redis-3.2.100-Windows集群配置版"提供了在Windows上配置Redis集群的便捷方案。 该压缩包包含了一个预配置好的Redis集群,由3个主节点、3个从节点以及2个哨兵(Sentinel)节点组成。这样的设置确保了数据的...

    Redis3.2的windows版本

    在Windows环境下使用Redis 3.2,用户通常会下载`Redis-x64-3.2`这样的压缩包,解压后包含Redis服务器(`redis-server.exe`)、客户端(`redis-cli.exe`)以及配置文件(`redis.windows.conf`)等。启动服务器时,可以通过...

    windows版本redis3.2

    在Windows环境下,安装和使用Redis 3.2相对简单,只需解压并运行`redis-server.exe`即可。 **Redis 3.2新特性:** 1. **集合类型优化**:Redis 3.2对集合类型进行了性能优化,提高了集合操作的效率。 2. **有序集合...

    redis-3.2 windows版

    这个压缩包是Redis 3.2版本的Windows移植版,适合在Windows操作系统上运行。它包含了启动和停止脚本,使得在Windows环境下操作Redis变得更加简便,就像使用解压版的Tomcat一样简单。 Redis 3.2是一个稳定版本,它在...

    windows版本 64位 redis3.2下载安装包

    压缩包中的其他文档,如`Redis在windows下安装过程.docx`、`Redis on Windows.docx`、`Windows Service Documentation.docx`和`Redis on Windows Release Notes.docx`提供了更详细的安装指南、使用说明和更新记录,...

    nginx1.8-tomcat7-redis3.2-session配置和jar包

    本文件包经过本人亲测能用,支持nginx1.8.1和tomcat7.0.63和Redis-x64-3.2.100版, 包含tomcat集群redis会话共享的依赖jar包,包含有2.1.0和2.7.2两个版本,配置方式稍微有点差别,两个版本不兼容。 2.1.0版包含 ...

    redis3.2.100.zip

    此“redis3.2.100.zip”压缩包提供了Redis的Windows 64位版本,适用于64位操作系统。Redis 3.2.100是该软件的一个稳定发行版,包含了一系列优化和改进,旨在提高性能和稳定性。 1. **Redis简介** Redis(Remote ...

    Redis-x64-3.2-windows系统安装包.zip

    总之,Redis 3.2 在 Windows 环境中的安装和使用,为开发者提供了一个强大而便捷的键值存储解决方案,可用于提升应用程序的性能和功能。通过理解其特性和正确安装,可以充分发挥 Redis 在缓存、消息队列和实时数据...

    Redis3.2的windows版本(64位)

    1. 下载并运行`redis3.2.100.msi`安装文件。 2. 按照安装向导的提示进行配置,包括安装路径、是否设置为服务等。 3. 安装完成后,启动Redis服务,可以在命令行使用`redis-server`命令启动服务器。 4. 可以使用`redis...

    redis 3.2 windows 安装包。内有部署文件

    在Windows环境下安装Redis 3.2,对于开发者和管理员来说是常见任务,尤其是在需要在Windows服务器上运行Redis服务时。以下是一份详细的Redis 3.2在Windows上的安装和配置指南: 1. **下载与解压** 首先,你需要从...

    redis3.2.100_windows

    Redis是NoSQL数据库系统中的...在使用"redis3.2.100_windows"时,务必阅读官方文档,了解Windows平台上的特殊注意事项,并根据实际需求进行配置和优化。同时,持续关注Redis的新版本更新,以获取最新的功能和性能改进。

    redis 3.2.100 windows版本安装包

    这里我们关注的是Redis在Windows系统的3.2.100版本的安装过程。 1. **Redis概述** Redis是"Remote Dictionary Server"的缩写,由Salvatore Sanfilippo创建。它是一个基于内存的数据结构存储系统,可以作为数据库、...

    Redis3.2X64 windows版

    在Windows环境下,Redis的部署和使用与Linux有所不同,这里我们将围绕"Redis3.2X64 windows版"进行详细的介绍。 首先,Redis 3.2是Redis的一个稳定版本,X64指的是适用于64位操作系统。在Windows上安装Redis,我们...

    Redis-x64-3.2.100免安装版配置+linux版.zip

    在Windows平台上,Redis-x64-3.2.100.msi是微软安装程序格式,它包含了Windows系统下的Redis服务安装和配置。使用msi文件,用户可以方便地进行安装、更新或卸载Redis服务。另外,Redis-x64-3.2.100.zip则是未打包成...

    windows 64位,版本 redis 3.2

    在Windows上安装Redis 3.2版本,尤其是64位版本,是许多开发者在本地环境进行测试和开发时的需求。下面将详细介绍Windows 64位环境下安装Redis 3.2的过程及相关知识点。 首先,Redis 3.2是Redis的一个稳定版本,...

    Redis-x64-3.2.100 windows 安装包

    6. **配置文件**:虽然安装过程中未提供自定义配置文件的选项,但你可以在安装目录下找到`redis.windows.conf`文件,通过编辑此文件可以自定义Redis的行为,如修改端口号、最大内存限制、持久化策略等。 7. **服务...

Global site tag (gtag.js) - Google Analytics