redis启动失败原因分析及解决过程

来源:这里教程网 时间:2026-03-05 11:16:21 作者:
1.输入启动命令2.报错后输入redis-cli.exe3.输入shutdown 结束redis4.再输入 exit 退出redis5.退出后再次输入6.启动成功总结

1.输入启动命令

redis-server.exe redis.windows.conf启动redis,发现启动失败报错:

[8072] 07 May 09:28:52.241 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error

D:\a\Main\redis> redis-server.exe redis.windows.conf
[8072] 07 May 09:28:52.241 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error

2.报错后输入redis-cli.exe

D:\a\Main\redis>redis-cli.exe

3.输入shutdown 结束redis

127.0.0.1:6379> shutdown

4.再输入 exit 退出redis

not connected> exit

5.退出后再次输入

启动redis的命令redis-server.exe redis.windows.conf

D:\a\Main\redis>redis-server.exe redis.windows.conf

6.启动成功

redis 启动 失败D:\a\Main\redis> redis-server.exe redis.windows.conf
[8072] 07 May 09:28:52.241 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error

D:\a\Main\redis>redis-cli.exe
127.0.0.1:6379> shutdown
not connected> exit

D:\a\Main\redis>redis-server.exe redis.windows.conf
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 3.2.100 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 1392
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

[1392] 07 May 09:29:22.203 # Server started, Redis version 3.2.100
[1392] 07 May 09:29:22.204 * DB loaded from disk: 0.000 seconds
[1392] 07 May 09:29:22.204 * The server is now ready to accept connections on port 6379

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持。

相关推荐

热文推荐