解决redis-server.exe闪退与RedisDesktopManager连接数据库配置

73 阅读1分钟

关于闪退的问题:

# C:\Program Files>cd Redis
# C:\Program Files\Redis>redis-server.exe redis.windows.conf
# [11976] 24 Mar 15:55:56.946 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
# C:\Program Files\Redis>redis-cli.exe
# 127.0.0.1:6379> shutdown
# not connected> exit
# C:\Program Files\Redis>redis-server.exe redis.windows.conf
#                 _._
#            _.-``__ ''-._
#       _.-``    `.  `_.  ''-._           Redis 3.2.100 (00000000/0) 64 bit
#   .-`` .-```.  ```/    _.,_ ''-._
#  (    '      ,       .-`  | `,    )     Running in standalone mode
#  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
#  |    `-._   `._    /     _.-'    |     PID: 16716
#   `-._    `-._  `-./  _.-'    _.-'
#  |`-._`-._    `-.__.-'    _.-'_.-'|
#  |    `-._`-._        _.-'_.-'    |           http://redis.io
#   `-._    `-._`-.__.-'_.-'    _.-'
#  |`-._`-._    `-.__.-'    _.-'_.-'|
#  |    `-._`-._        _.-'_.-'    |
#   `-._    `-._`-.__.-'_.-'    _.-'
#       `-._    `-.__.-'    _.-'
#           `-._        _.-'
#               `-.__.-'
#
# [16716] 24 Mar 15:58:54.061 # Server started, Redis version 3.2.100
# [16716] 24 Mar 15:58:54.062 * DB loaded from disk: 0.000 seconds
# [16716] 24 Mar 15:58:54.062 * The server is now ready to accept connections on port 6379
# [16716] 24 Mar 15:59:06.099 # User requested shutdown...
# [16716] 24 Mar 15:59:06.099 * Saving the final RDB snapshot before exiting.
# [16716] 24 Mar 15:59:06.100 # Failed opening the RDB file dump.rdb (in server root dir C:\Program Files\Redis) for saving: Permission denied
# [16716] 24 Mar 15:59:06.100 # Error trying to save the DB, can't exit.
# [16716] 24 Mar 15:59:06.101 # SIGTERM received but errors trying to shut down the server, check the logs for more information

关于连接数据库:

  • 启动数据库服务
  • 启动工具进行数据库配置
  • 连接数据库测并测试

启动数据库服务:

01.png

启动工具进行数据库配置:

02.png

连接数据库测并测试:

03.png