1,redis official: Https://redis.io/download,redis 64-bit: Https://github.com/ServiceStack/redis-windows, I am testing using the redis-64.3.0.503 version.
2, decompression redis-64.3.0.503.zip, the file structure after decompression is as follows:
3, modify the redis.windows.conf file, set the MaxMemory size
Set up Redis password, no password by default
4, start Redis: command line Redis-server.exe redis.windows.conf, if the configuration file is not set, then the default is not required password
Test, successfully installed:
5. Join Redis to the services in Windows
installation command: Redis-server.exe--service-install redis.windows.conf--loglevel verbose Use the command, the installation succeeds, so:
Common Redis service commands.
Uninstall Service: Redis-server--service-uninstall
Open service: Redis-server--service-start
Stop service: Redis-server--service-stop
Rename Service: Redis-server--service-name Name
To rename a service, it needs to be written after the first three parameters, for example:
The following would install and start three separate instances of Redis as a service: 以下将会安装并启动三个不同的Redis实例作服务:redis-server --service-install --service-name redisService1 --port 10001redis-server --service-start --service-name redisService1redis-server --service-install --service-name redisService2 --port 10002redis-server --service-start --service-name redisService2redis-server --service-install --service-name redisService3 --port 10003redis-server --service-start --service-name redisService3
Four: Test start-up service
Redis-server--service-start
Client
Command:
精简模式:redis-cli.exe指定模式:redis-cli.exe -h 127.0.0.1 -p 6379 -a requirepass(-h 服务器地址 -p 指定端口号 -a 连接数据库的密码[可以在redis.windows.conf中配置],默认无密码)
Test read and write data
The installation test was successful.
V: the Desktop management tool recommended by Redis Desktop management tool: Redis Desktop Manager:
Https://redisdesktop.com/download
Windows under Redis installation