微软官网源码 https://github.com/MicrosoftArchive/redishtml
这里介绍安装Signed binaries版本git
官方安装说明 https://chocolatey.org/installgithub
两种方法redis
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
官方安装说明 https://chocolatey.org/packages/redis-64/shell
在命令中键入windows
choco install redis-64
默认安装目录 C:\ProgramData\chocolatey\lib\redis-64。安装目录中有相关介绍文档《Redis on Windows.docx》、《Redis on Windows Release Notes》、《Windows Service Documentation.docx》工具
参考安装目录中的文档《Windows Service Documentation.docx》ui
在当前目录命令中键入spa
redis-server --service-install redis.windows.conf
以读取配置文件 redis.windows.conf ,中包括端口号(port 端口号)、受权秘钥(requirepass 秘钥)等code
在当前目录命令中键入
redis-server --service-start