数据库
首页 > 数据库> > 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

 

标签:01,15,-._,Apr,启动,Redis,13004,_.-
来源: https://www.cnblogs.com/holdyoung/p/14670830.html