今天运行redis服务端时候出现这个问题:

D:\php\software\redis>redis-server.exe
[484] 04 Dec 21:49:00.797 # Warning: no config file specified, using the default
 config. In order to specify a config file use redis-server.exe /path/to/redis.c
onf
[484] 04 Dec 21:49:00.837 # Creating Server TCP listening socket *:6379: listen:
 Unknown error

意思就是读取默认配置失败,请手动指定启动配置文件

解决方案:

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

[3224] 04 Dec 21:49:12.586 # Server started, Redis version 3.2.100
[3224] 04 Dec 21:49:12.587 * DB loaded from disk: 0.001 seconds
[3224] 04 Dec 21:49:12.590 * The server is now ready to accept connections on po
rt 6379

启动成功

相关文章:

  • 2022-12-23
  • 2021-08-11
  • 2021-07-19
  • 2021-04-09
  • 2021-05-30
  • 2021-06-08
猜你喜欢
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2021-10-30
相关资源
相似解决方案