windows下使用redis

1、下载windows版本的Redis

官网只提供linux版本的下载linux

官网下载地址:http://redis.io/downloadgit

Redis 没有官方的Windows版本,可是微软开源技术团队(Microsoft Open Tech group)开发和维护着这个 Win64 的版本。github

Windows版本github下载地址:https://github.com/MicrosoftArchive/redisredis

redis中文网站:http://redis.cn/windows

 

2、启动Redis

解压下载的压缩包redis-windows-master.zip网站

直接运行E:\tools\redis-windows-master\src\msopentech\redis-64.2.8.2101\redis-server.exeserver

或者在cmd里进入到E:\tools\redis-windows-master\src\msopentech\redis-64.2.8.2101文件夹,运行redis-server redis.windows.conf,出现下图显示表示启动成功了。blog

 

3、设置Redis服务

设置redis为Windows的服务进程,防止关掉cmd窗口,redis也跟着关掉。进程

redis-server --service-install redis.windows-service.conf --loglevel verboseip

 

4、经常使用的redis服务命令。

卸载服务:redis-server --service-uninstall

开启服务:redis-server --service-start

中止服务:redis-server --service-stop

相关文章
相关标签/搜索