1. https://redis.io/download =>linux
2. https://github.com/MicrosoftArchive/redis/releases =>windows;   Redis Desktop Manager
3. https://redis.io/clients =>C#
4.1 Redis-x64-3.2.100/redis-server.exe redis.windows.conf=> c/s server

4.2 redis-server.exe --service-install redis.windows.conf =>c/s windows service
5. redis-server --service-install redis.windows.conf => for inital instance at services.msc
5.1 redis-server --service-uninstall
5.2 redis-server --service-start
5.3 redis-server --service-stop
6. redis-check-aof.exe => check updated log
7. redis-benchmark.exe =>//性能测试,用以模拟同时N个客户端发送M个sets/gets查询
8. redis-cli.exe =>cli windows
9. RDB (Redis DataBase)和 AOF (Append Only File)
10. redis-check-aof.exe --fix appendonly.aof 该命令会清楚所有不符合语法的命令
11. https://rubygems.org/gems/redis/versions/
12. http://dl.bintray.com/oneclick/rubyinstaller/ =>ruby
13. gem install redis=> cd C:\Ruby22-x64 ; gem install --local C:\Ruby22-x64\redis-3.2.2.gem

 

14.  Cluster,  copy 6 all file to 7000, 7001,7002,7003,7004,7005 folder and update redis.windows.conf file

cluster-enabled yes
cluster-config-file nodes-6379.conf
cluster-node-timeout 15000
appendonly yes

15.  add each start.bat file and run it

title redis-7005
redis-server.exe redis.windows.conf

16. run, then can directly stop/start individually port 

ruby redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005

 

17. net使用Redis(ServiceStack插件)

     improvement: write to master,  get from slave

18. test

   redis-cli.exe -c -p 7000  

set test 1
posted on 2020-09-09 21:31  杨科  阅读(113)  评论(0)    收藏  举报