The original application is: 'https://www.cnblogs.com/koal/p/5484916.html`
First quote Baidu Encyclopedia of a paragraph, specific to the encyclopedia to see it.
Redis is an open source API that is written in ANSI C, supports the web, can be persisted in memory, key-value databases, and provides multiple languages. From March 15, 2010 onwards, the development work of Redis is hosted by VMware. Since May 2013, the development of Redis has been sponsored by pivotal.
1. Download and install
Official: ' http://redis.io/download`
but officially there is no 64 executable program under Windows, there is an open source hosted on GitHub, Address: ' https://github.com/ServiceStack/redis-windows
Click this place, download the file and unzip it to your own computer directory.
This article uses the version: 'redis64-3.0.501.zip`
The following directories are extracted:
File name Brief
redis-benchmark.exe
Benchmark Test
redis-check-aof.exe
AoF
redischeck-dump.exe
Dump
redis-cli.exe
Client
redis-server.exe
Server
redis.windows.conf
Configuration file
2. Modify the configuration
Then edit the redis.windows.conf file, I see some tutorials on the web said the editor inside Maxheap, but after the 3.x version, modified is maxmemory, Bytes is a byte, please self-conversion, I changed to ' maxmemory 1024000000`
.
In fact, this place can not be set, he described the already said, Redis will automatically set.
Set the Redis password: find ' # requirepass foobared
change to ' requirepass 我的密码
, the native test is not set.
3. Start the service
After saving open the Redis directory, shift+ the left mouse button to find the menu: Open a command line window here or run the cmd command yourself to this directory
The command is as follows:
`redis-server.exe redis.windows.conf --maxmemory 200M
`
Which --maxmemory 200M
is optional, if you configure the file ' configuration redis.windows.conf`
, this can be omitted, if not configured, this can add also can not add, you happy good.
4. Testing
When this interface appears, the boot is successful, listen to Port 6379, and let's test the effect.
Reopen a DOS interface with the following effect:
If you set a redis password, you need to execute the auth password command before set, otherwise you will be prompted '(error) NOAUTH Authentication required.`
5. Add a service
Finally, add Redis to the Windows service. First, start the Redis server, and then run the Redis client, and then through the Windows Service-install command, enter
`redis-server --service-install redis.windows.conf --loglevel verbose
`
You can start with the win service later, without having to open a DOS interface every time.
Recommended Redis Technology read: http://www.cnblogs.com/hoojo/p/4466024.html
Recommended Redis Desktop client: Http://www.oschina.net/p/redis-studio
<wiz_tmp_tag id= "Wiz-table-range-border" contenteditable= "false" style= "Display:none;" >
[Reproduced]win7x64 under the Redis installation and use