设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 数据 手机
当前位置: 首页 > 站长学院 > MySql教程 > 正文

一文带你揭开Redis复制原理的神秘面纱(2)

发布时间:2019-09-17 08:52 所属栏目:115 来源:陈龙
导读:(3) 启动从库实例 [redis@albertsrc]$./redis-serverredis.conf6380 18828:C04Aug201910:52:27.743#oO0OoO0OoO0OoRedisisstartingoO0OoO0OoO0Oo 18828:C04Aug201910:52:27.744#Redisversion=5.0.4,bits=64,commit=0

(3) 启动从库实例

  1. [redis@albert src]$ ./redis-server redis.conf6380 
  2. 18828:C 04 Aug 2019 10:52:27.743 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 
  3. 18828:C 04 Aug 2019 10:52:27.744 # Redis version=5.0.4, bits=64, commit=00000000, modified=0, pid=18828, just started 
  4. 18828:C 04 Aug 2019 10:52:27.744 # Configuration loaded 
  5.                 _._                                                  
  6.            _.-``__ ''-._                                             
  7.       _.-``    `.  `_.  ''-._           Redis 5.0.4 (00000000/0) 64 bit 
  8.   .-`` .-```.  ```\/    _.,_ ''-._                                   
  9.  (    '      ,       .-`  | `,    )     Running in standalone mode 
  10.  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6380 
  11.  |    `-._   `._    /     _.-'    |     PID: 18828 
  12.   `-._    `-._  `-./  _.-'    _.-'                                   
  13.  |`-._`-._    `-.__.-'    _.-'_.-'|                                   
  14.  |    `-._`-._        _.-'_.-'    |           http://redis.io        
  15.   `-._    `-._`-.__.-'_.-'    _.-'                                   
  16.  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
  17.  |    `-._`-._        _.-'_.-'    |                                   
  18.   `-._    `-._`-.__.-'_.-'    _.-'                                   
  19.       `-._    `-.__.-'    _.-'                                       
  20.           `-._        _.-'                                           
  21.               `-.__.-'                                               
  22.   
  23. 18828:S 04 Aug 2019 10:52:27.746 # Server initialized 
  24. 18828:S 04 Aug 2019 10:52:27.746 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 
  25. 18828:S 04 Aug 2019 10:52:27.746 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. 
  26. 18828:S 04 Aug 2019 10:52:27.746 * Ready to accept connections 
  27. 18828:S 04 Aug 2019 10:52:27.746 * Connecting to MASTER 127.0.0.1:6379 
  28. 18828:S 04 Aug 2019 10:52:27.746 * MASTER <-> REPLICA sync started 
  29. 18828:S 04 Aug 2019 10:52:27.746 * Non blocking connect for SYNC fired the event. 
  30. 18828:S 04 Aug 2019 10:52:27.746 * Master replied to PING, replication can continue... 
  31. 18828:S 04 Aug 2019 10:52:27.747 * Partial resynchronization not possible (no cached master) 
  32. 18828:S 04 Aug 2019 10:52:27.748 * Full resync from master: fc71b19242e8145254ba7751d346a8f4bb4c53c6:0 
  33. 18828:S 04 Aug 2019 10:52:27.788 * MASTER <-> REPLICA sync: receiving 175 bytes from master 
  34. 18828:S 04 Aug 2019 10:52:27.788 * MASTER <-> REPLICA sync: Flushing old data 
  35. 18828:S 04 Aug 2019 10:52:27.788 * MASTER <-> REPLICA sync: Loading DB in memory 
  36. 18828:S 04 Aug 2019 10:52:27.788 * MASTER <-> REPLICA sync: Finished with success 

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读