windows平台安装redis服务

有时候咱们须要在windows平台上使用redis做为缓存服务,这个时候就须要将redis安装为window服务。html

如今将我安装过程记录下来,方便本身或者有相似需求的同窗参考。主要是参考网上现有的例子,请轻喷redis

 

主要参考以下文章:windows

http://www.it165.net/admin/html/201407/3407.html缓存

http://www.cnblogs.com/shanyou/archive/2013/01/17/redis-on-windows.htmlspa

 

以下摘抄的是http://www.it165.net/admin/html/201407/3407.html 处的文章.net

 

.首先下载微软官方推荐的版本redis-2.8.12命令行

\

2.开始配置,首先复制两份redis.conf而且重命名为redis6379.conf  redis6380.conf 里面的配置节点相应的更改成port 6379 port 63803d

\

3.开始安装(最笨的方法 cmd命令行)server

D:\redis-2.8.12\redis-server.exe –service-install D:\redis-2.8.12\redis6379.conf –service-name redisService6379 –port 6379htm

D:\redis-2.8.12\redis-server.exe –service-install D:\redis-2.8.12\redis6380.conf –service-name redisService6380 –port 6380

E:\redis-2.8.12\redis-server.exe --service-install E:\redis-2.8.12\redis6379.conf --service-name redisService6379 --port 6379

此处我在win7 64位上面使用"--"才能注册成功,不知道为何,有知道的同窗请留言告知,谢谢~

 

\

安装后的服务状况:

\

任务管理器的状况:

\

端口监听状况:

至此Redis做为Windows服务成功运行,微软官方推荐最多能够安装运行3个实例,此文以运行2个实例为例。

相关文章
相关标签/搜索