redis啓動失敗的排查

今早還才7點鐘,公司說app掛了,相關開發瞬間繃起神經,一時間羣魔亂舞,最終到我這兒需要重新啓動redis,於是乎我到公司第一件事就是查看關於redis的問題。

開機,xhell連上服務器,網速太慢,xhell卡頓,以爲網速問題,打開寶塔,寶塔界面正常打開,裏面的redis點擊重啓,重啓失敗,重新加載配置,失敗,啓動,毫無疑問,依然失敗。那麼問題就只能在服務器裏看了。
於是開始我排錯步驟:
第一步:啓動redis的同時,查找日誌。
悲劇的是redis沒有啓動日誌,找到redis的配置文件,添加啓動日誌文件。
logfile "/www/server/redis/redis.log"

redis啓動失敗的排查

此時,重新啓動redis,查看日誌

26654:C 14 Oct 2019 09:34:28.178 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
26654:C 14 Oct 2019 09:34:28.178 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=26654, just started
26654:C 14 Oct 2019 09:34:28.179 # Configuration loaded
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 5.0.5 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 26655
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

26655:M 14 Oct 2019 09:34:28.182 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
26655:M 14 Oct 2019 09:34:28.182 # Server initialized
26655:M 14 Oct 2019 09:34:28.182 # WARNING overcommit_memory is set to 0! Background savemay 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.
26655:M 14 Oct 2019 09:34:28.182 # 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' asroot, 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.
26655:M 14 Oct 2019 09:34:28.182 * Reading RDB preamble from AOF file...
26655:M 14 Oct 2019 09:34:28.189 * Reading the remaining AOF tail...
26655:M 14 Oct 2019 09:34:28.189 # Unknown command 'DEL' reading the append only file
28784:C 14 Oct 2019 09:39:40.176 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
28784:C 14 Oct 2019 09:39:40.176 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=28784, just started
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章