使用 Chocolatey包安装redis

1.cmd安装

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin 
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

 

posted @ 2020-07-06 18:58  hzangrg  阅读(397)  评论(0编辑  收藏  举报