千萬不要弄錯了:
redis-server.exe redis.windows.conf
。我之前複制了其他部落格的
redis-server.exe redis-windows.conf
,弄的我很絕望啊。
出現下圖錯誤的原因,我覺得是
6379
端口被占用了。
解決
運作
redis-cli.exe
,輸入
shutdown
,報錯:
(error)NOAUTH Authentication required.
。
因為沒有輸入密碼,輸入
redis-cli.exe -a password
後,再輸入
shutdown
。沒有報錯說明成功了,
exit
即可。