redis 在windows上运行

时间:2023-03-10 02:07:42
redis 在windows上运行

参考自:https://github.com/ServiceStack/redis-windows

1.用vagrant 运行redis的最后版本

1.1在windows上安装vagrant

http://docs.vagrantup.com/v2/getting-started/

1.2下载vagrant-redis.zip(vagrant的配置文件

https://raw.github.com/ServiceStack/redis-windows/master/downloads/vagrant-redis.zip

1.3解压vagrant-redis.zip,在任何文件夹下,例如c:\vagrant-redis

1.4运行虚拟机

cd /d c:\vagrant-redis

vagrant up

2.运行微软本地redis端口

2.1下载redis64-latest.zip

https://raw.github.com/ServiceStack/redis-windows/master/downloads/redis64-latest.zip

2.2解压redis64-latest.zip,在任何文件夹下,例如c:\redis

2.3使用本地的redis.conf配置文件,运行redis-server.exe

cd c:\redis

redis-server.exe redis.conf

此时redis 运行在127.0.0.1:6379上,已经可以使用。

更多信息请访问:

https://github.com/ServiceStack/redis-windows