windows下安装Redis

1、下载windows版redis
地址:https://github.com/MicrosoftArchive/redis/tags



2、安装redis
下载了最新的版本Redis-x64-3.2.100,在运行中输入cmd,进入到刚刚解压完成的redis目录。



redis-server redis.windows.conf 出现如下图则表示启动成功。


3、将redis设置成windows下的服务
设置命令
redis-server --service-install redis.windows-service.conf --loglevel verbose

通过执行上述命令无报错则安装成功,在windows下可以查看到相应服务



4、resis开户及停止命令
redis-server --service-start
redis-server --service-stop



5、测试redis





猜你喜欢

转载自leroy0910.iteye.com/blog/2389534