Gao Goweng
-
Forum Badge:
-
3
|
Write a set of automated programs based on Dapper and see Mgravell of another project,Stackexchange.redis, before in. NET over a period of time Redis, but has been the other driver development package, according to the author, is a high-performance thread-safe. NET C # to develop a library of Redis clients. Said is very hanging, but I am sure that the Mgravell produced by the goods are fine. Say how useless, first of all redis in WIN development environment set up. Redis official does not have 64-bit Windows executable program, currently has an open source hosted on GitHub, address:https://github.com/ServiceStack/redis-windowsClick this location to download the file and unzip it to your own computer directory.
When you see this article, the version may not be the same, but it's OK, don't find the wrong place to download. Yes, I downloaded it and put it in my D-disk, roughly. (You don't have to be the same as me if you look at it yourself)
Read me. txt files are added to the directory by myself, and I'm generally used to doing something about it when I install a thing, in case I forget something important.
That's a lot of crap. Then modify one of the things in the redis.windows.conf configuration file. I opened it with notepad++, txt open the same. Search Maxheap keywords, find # maxheap <bytes> In the line below it is written maxheap 1024000000 (this is the size of the maximum data heap, the size of which you look at it) The following CMD, enter the service run Server command to enter, the approximate appearance of the following graphic content to indicate success.
The Redis-cli.exe file is the client, and CMD runs it to execute the redis command.
Finally, say the Redis boot host to the Windows service.
First, start the Redis server, and then run the Redis client, and then through the Windows Service-install command, enter
[plain] view plain copy
- Redis-server--service-install redis.windows.conf--loglevel verbose
OK, done, look at the local service, are you joining Redis?
You can now close the Redis client and server, refresh the service, and then start the Redis service. The Redis command still needs to open its client redis-cli.exe. For more Redis commands, you can look at the official website or the Chinese station, Poke here:http://www.redis.cn/commands.html。 By the way, a Redis visualizer is introduced,Redisdesktopmanager Yes, it's open source, hosted on GitHub:Https://github.com/uglide/RedisDesktopManager
OK, let's use it to see the effect. First configure Redis connection, recommended password, set Redis password Baidu A lot of, here we directly modify the redis.windows.conf file, open it, find # Requirepass foobared (#打头的表示此行是注释说明状态, remove # is the configuration state), we modify, remove #, configure a password (or simply another line, according to write)
Below the console, add a key with the Redis command:
[Plain] View Plain Copy
- Set TeacherName jon123123
Reload Look down
Other than that, you can look at GitHub or a wiki (Https://github.com/uglide/RedisDesktopManager/wiki/Quick-Start) Additional references:http://www.cnblogs.com/hoojo/p/4466024.html(Redis Learning Guide)
Reprinted from: http://blog.csdn.net/joyhen/article/details/47358999 |
|