1.問題描述:我的redis是安裝window在的F盤下,當我準備開啓redis時,嚮往常一樣,在redis文件下打開命令行,啓動redis:redis-server redis.conf,出現下面錯誤:
windows下啓動redis提示: Invalid argument during startup: Failed to open the .conf file: redis.conf CWD=F:\redis
這個時候不要慌,然後我直接敲redis-server,服務是成功啓動了,但沒有讀配置文件redis.conf,這種方式類似於直接雙擊redis-server.exe,但提示沒有使用配置文件
後來我突然想到,因爲我是在windows上運行的,所以啓動的命令和Linux上是不一樣的,應該改成redis-server redis.window.conf,這樣之後就可以了,不會報那個問題了
2.問題描述:redis報錯:[6644] 02 Apr 23:11:58.976 # Creating Server TCP listening socket *:6379: bind: No such file or directory
在命令行進行如下操作:
- redis-cli.exe 2. shutdown 3. exit 4. redis-server.exe
結果就可以重新開啓redis了