Windows 安裝Redis Windows 安裝Redis
Windows 安裝Redis
一:下載安裝包
redis官方下載地址:https://redis.io/download,
redis 64位下載地址:https://github.com/ServiceStack/redis-windows
二:採用Chocolatey(https://chocolatey.org/) 命令列
現在我們以第二種為例,做安裝示例。
第一步:安裝Choco
用管理員身份代開cmd 執行一下命令列 ,注意一定要管理員身份
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
看到箭頭指向這句話時,已經安裝成功了
接著命令列執行
@powershell Set-ExecutionPolicy Bypass; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
安裝完畢
第二步:安裝Redis
1、執行如下命令安裝或者升級64位的Redis
choco install redis-64 --安裝 choco upgrade redis-64 --升級
Redis安裝成功
2、啟動服務
執行命令:
redis-server
啟動成功了
下面來驗證是否安裝成功
切換Redis目錄
設定鍵值對:
set name Ramon get name
這樣已經大功告成了
附帶小知識:
一:把Redis加入到Windows服務
在箭頭指向處輸入cmd,然後執行以下命令
redis-server.exe --service-install redis.windows.conf --loglevel verbose
執行效果:
Ctrl + Shift + Esc -> 服務
這樣就說明成功了
開啟Redis服務命令列:
redis-server --service-start
啟動成功
如果想要解除安裝服務,在cmd命令視窗中輸入:
redis-server --service-uninstall
二:Redis視覺化工具
①:Redis Desktop Manager
下載地址:https://redisdesktop.com/download
②:TreeSoft
下載地址:http://www.treesoft.cn/dms.html
如圖所示:
一:下載安裝包
redis官方下載地址:https://redis.io/download,
redis 64位下載地址:https://github.com/ServiceStack/redis-windows
二:採用Chocolatey(https://chocolatey.org/) 命令列
現在我們以第二種為例,做安裝示例。
第一步:安裝Choco
用管理員身份代開cmd 執行一下命令列 ,注意一定要管理員身份
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
看到箭頭指向這句話時,已經安裝成功了
接著命令列執行
@powershell Set-ExecutionPolicy Bypass; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
安裝完畢
第二步:安裝Redis
1、執行如下命令安裝或者升級64位的Redis
choco install redis-64 --安裝 choco upgrade redis-64 --升級
Redis安裝成功
2、啟動服務
執行命令:
redis-server
啟動成功了
下面來驗證是否安裝成功
切換Redis目錄
設定鍵值對:
set name Ramon get name
這樣已經大功告成了
附帶小知識:
一:把Redis加入到Windows服務
在箭頭指向處輸入cmd,然後執行以下命令
redis-server.exe --service-install redis.windows.conf --loglevel verbose
執行效果:
Ctrl + Shift + Esc -> 服務
這樣就說明成功了
開啟Redis服務命令列:
redis-server --service-start
啟動成功
如果想要解除安裝服務,在cmd命令視窗中輸入:
redis-server --service-uninstall
二:Redis視覺化工具
①:Redis Desktop Manager
下載地址:https://redisdesktop.com/download
②:TreeSoft
下載地址:http://www.treesoft.cn/dms.html
如圖所示: