Environment Building under redis Windows
Redisis aKey-valueStorage System. and theMemcachedSimilarly, it supports the storage ofvaluetypes are relatively more, includingString (string),List (Linked list),Set (Collection),Zset (sorted set--ordered Collection)and theHash(hash type). These data types all supportPush/pop,Add/removeand take the intersection of the set and the difference set and richer operations, and these operations are atomic. On this basis,Redissupports sorting in a variety of different ways. With thememcached, the data is cached in memory in order to ensure efficiency. The difference isRedisperiodically writes the updated data to the disk or writes the modification to the appended record file, and on this basis implements theMaster-slave.
Installation
1. redis_windwos_64 -bit installation package download
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/8A/wKiom1YAyBbQb7jUAAJEKBROBbY492.jpg "title=" Picture 1.png "alt=" wkiom1yaybbqb7juaajekbrobby492.jpg "/>
2. decompression to the specified directory, according to their own system to select the first or the
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/8A/wKiom1YAyCeQ8yr3AADl4iN9cAg996.jpg "title=" Picture 2.png "alt=" wkiom1yayceq8yr3aadl4in9cag996.jpg "/>
3. copy The contents of the catalog into the server
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/88/wKioL1YAynKT6yTQAAGnZtgke0w058.jpg "title=" Picture 3.png "alt=" wkiol1yaynkt6ytqaagnztgke0w058.jpg "/>
4. to start redis, it is important to note that closing the window is tantamount to shutting down the service
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/8A/wKiom1YAyEDQ6hawAAD6t1Er374352.jpg "title=" Picture 4.png "alt=" wkiom1yayedq6hawaad6t1er374352.jpg "/>
5. Connect to Redisand set values to see if it is successful
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/73/8A/wKiom1YAyEuzmcxxAABzhAyJlbQ778.jpg "title=" Picture 5.png "alt=" wkiom1yayeuzmcxxaabzhayjlbq778.jpg "/>
Redis Password Authentication
6. turn on this line and enter the password you set in the red circle
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/88/wKioL1YAyqHTXH6kAAC6NpsTGy0130.jpg "title=" Picture 6.png "alt=" wkiol1yayqhtxh6kaac6npstgy0130.jpg "/>
Visit the Login test:
7. copy The client tools from the Redis directory on your PC
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/88/wKioL1YAyqzCLmvAAABgkrxUXP4438.jpg "title=" Picture 7.png "alt=" wkiol1yayqzclmvaaabgkrxuxp4438.jpg "/>
8. Login Test without password, prompt without permission
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/8A/wKiom1YAyHnT2EuqAACrVGTLVWg964.jpg "title=" Picture 8.png "alt=" wkiom1yayhnt2euqaacrvgtlvwg964.jpg "/>
9. then test login with password , success!!
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/88/wKioL1YAysPTY4bCAACDiNrHucw723.jpg "title=" Picture 9.png "alt=" wkiol1yayspty4bcaacdinrhucw723.jpg "/>
Redis Enable Persistence
Redis persistence with rdb and aof
two kinds.
Rdbis to record the operation over a period of time, a set of configuration is over a period of time more than how many times to persist.
AoFIt is possible to persist each operation.
Here we useaof.
Configuration mode, openRedis's configuration file. Findappendonly. Default isappendonly No. Change intoappendonly Yes.
Find it again.Appendfsync
The default is :
# Appendfsync always #每次收到写命令就立即强制写入磁盘, the slowest, but guaranteed full persistence, not recommended to use Appendfsync everysec #每秒钟强制写入磁盘一次, a good compromise in performance and persistence, recommended # Appendfsync no #完全依赖os, best performance, no guarantee of durability
The default per second persistence meets my needs.
In fact, change the appendonly is OK.
This article is from the "Good Big Knife" blog, please make sure to keep this source http://53cto.blog.51cto.com/9899631/1697025
Environment building under Redis windows