首页 > 数据库    日期:2026-07-11 / 浏览

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

总结

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

觉得上面的内容有用吗?快来点个赞吧!

点赞() 我要打赏

温馨提示 : 本站内容来自会员投稿以及互联网,所有源码及教程均为作者总结编辑,请大家在使用过程中提前做好备份,以免发生无法预知的错误,源码类教程请勿直接用于生产环境!

 可能感兴趣的文章