-
Redis軟件包下載地址鏈接:https://github.com/redis-windows/redis-windows/releases
-
檢查或者修改配置文件redis.conf:
#如果允許外部其他主機訪問本機redis,設置成:bind 0.0.0.0 bind 127.0.0.1 protected-mode yes #設置端口號,盡量不要用默認6379 port 6379 #設置登陸密碼 requirepass 12363dyw!#
-
配置redis系統環境變量:
-
安裝redis服務:
在redis解壓文件目錄下運行install_redis_service.bat
服務安裝腳本,腳本運行后會彈出cmd命令提示框,進行如下操作安裝:1.Please enter the redis installation path The default is the current path: D:\softwaretools\redis-7.4.3\ If you don't want to modify it, press Enter# 此處會提示輸入redis安裝路徑,默認路徑是上方提示的:D:\softwaretools\redis-7.4.3\ Installation Path:2.Please enter the redis configuration file path The default is the current path: D:\softwaretools\redis-7.4.3\redis.conf Must be an absolute path If you don't want to modify it, press Enter# 提示輸入redis的配置文件路徑,默認路徑是:D:\softwaretools\redis-7.4.3\redis.conf Configuration file Path:Installation Path: D:\softwaretools\redis-7.4.3\ Configuration file Path: D:\softwaretools\redis-7.4.3\\redis.conf # 確認上方配置路徑沒問題后回車鍵繼續即可 請按任意鍵繼續. . . [SC] CreateService 成功 Redis 服務正在啟動 . Redis 服務已經啟動成功。請按任意鍵繼續. . .
-
服務注冊安裝完后,啟動服務:
-
客戶端連接測試:客戶端下載鏈接