Redis教程

Redis启动

本文主要是介绍Redis启动,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

 

 可以通过 Redis启动日志 看Redis 服务器启动

 整个初始化过程可以分为以下六个步骤:

  1. 初始化服务器全局状态。                   // initServerConfig()
  2. 载入配置文件。                                 // loadServerConfig(configfile,options);
  3. 创建 daemon 进程。                         // daemonize()
  4. 初始化服务器功能模块。                  // initServer()          redisAsciiArt()
  5. 载入数据。                                        // loadDataFromDisk()
  6. 开始事件循环。                                // aeMain(server.el)

 

D:\software\Redis-x64-5.0.10>redis-server.exe redis.windows.conf
[13004] 17 Apr 15:01:04.622 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
[13004] 17 Apr 15:01:04.622 # Redis version=5.0.10, bits=64, commit=1c047b68, modified=0, pid=13004, just started
[13004] 17 Apr 15:01:04.623 # Configuration loaded
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 5.0.10 (1c047b68/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 13004
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

[13004] 17 Apr 15:01:04.635 # Server initialized
[13004] 17 Apr 15:01:04.636 * Reading RDB preamble from AOF file...
[13004] 17 Apr 15:01:04.636 * Reading the remaining AOF tail...
[13004] 17 Apr 15:01:04.636 * DB loaded from append only file: 0.001 seconds
[13004] 17 Apr 15:01:04.637 * Ready to accept connections

 

这篇关于Redis启动的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!