1.cmd安装
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%chocolateyin
2.PowerShell.exe
安装
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
3.PowerShell v3+安装
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
4.安装redis包
choco install redis-64
5.运行服务
redis-server