2. redis安裝與配置
注意:參看文件中說配置了環境變數,所以只需要輸入redis-server.exe
就可以了。如果輸入redis-server.exe redis.windows.conf
,系統會報錯。但是,自己在實際執行時,發現redis-server.exe
啟動的redis
根本不需要輸入密碼。而通過上面的方法啟動的redis
,卻需要輸入密碼。超神奇,但沒有時間去深究!
3. 測試redis並新增到windows服務
redis-cli.exe -h 127.0
.0.1
-p 6379
c:\users\lucy>redis-cli.exe -h 127.0
.0.1
-p 6379
127.0
.0.1
:6379
> set name grace //輸入set命令
(error) noauth authentication required.
//第一次使用,需要輸入密碼
127.0
.0.1
:6379
> auth lucylee //使用auth命令輸入密碼
ok127.0
.0.1
:6379
> set name grace //重新輸入set命令
注意:也可以在登入的時候直接輸入密碼:
# 解除安裝服務:
redis-server --service-uninstall
# 開啟服務:
redis-server --service-start
# 停止服務:
redis-server --service-stop
redis環境變數配置 win10下安裝配置mysql
3 建立my.ini配置檔案 mysqld 埠port 3306 mysql安裝目錄 basedir e amp mysql8 mysql資料存放目錄 datadir e amp mysql8 data 允許最大連線數 max connections 1024 服務端預設使用字符集 characte...
Win10下MySQL安裝配置
複製解壓後的mysql到c盤或者其他磁碟下。我們去系統的環境變數的path裡新增乙個mysql的配置 指向mysql的bin目錄。mysqld 設定3306埠 port 3306 設定mysql的安裝目錄 basedir x software mysql 8.0.13 winx64 設定mysql資...
win10 下安裝 配置 啟動mysql
2 community mysql community server 3 other downloads windows x86,32 bit zip archive 5 解壓mysql 5.7.11 winx64.zip,解壓在 d soft mysql 5.7.11 winx64 mysql 5...