zoukankan      html  css  js  c++  java
  • Redis Can't handle RDB format version 9

    Redis Can't handle RDB format version 9

    刚开始编译安装,有如下操作:

    cp redis-benchmark redis-cli redis-server /usr/bin/
    

    后来用dnf install redis,然后启动redis 报错:

    marco@pc01:~$ redis-server
    11700:C 18 Apr 08:18:52.007 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
    11700:C 18 Apr 08:18:52.007 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, 
    pid=11700, just started
    11700:C 18 Apr 08:18:52.007 # Warning: no config file specified, using the default config. In 
    order to specify a config file use redis-server /path/to/redis.conf
    11700:M 18 Apr 08:18:52.007 * Increased maximum number of open files to 10032 (it was 
    originally set to 1024).
                    _._
               _.-``__ ''-._
          _.-``    `.  `_.  ''-._           Redis 4.0.9 (00000000/0) 64 bit
      .-`` .-```.  ```/    _.,_ ''-._
     (    '      ,       .-`  | `,    )     Running in standalone mode
     |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
     |    `-._   `._    /     _.-'    |     PID: 11700
      `-._    `-._  `-./  _.-'    _.-'
     |`-._`-._    `-.__.-'    _.-'_.-'|
     |    `-._`-._        _.-'_.-'    |           http://redis.io
      `-._    `-._`-.__.-'_.-'    _.-'
     |`-._`-._    `-.__.-'    _.-'_.-'|
     |    `-._`-._        _.-'_.-'    |
      `-._    `-._`-.__.-'_.-'    _.-'
          `-._    `-.__.-'    _.-'
              `-._        _.-'
                  `-.__.-'
    
    11700:M 18 Apr 08:18:52.008 # Server initialized
    11700:M 18 Apr 08:18:52.008 # Can't handle RDB format version 9
    11700:M 18 Apr 08:18:52.008 # Fatal error loading the DB: Invalid argument. Exiting.
    

    解决办法:

    在整个文件系统中搜索dump.rdb:

    sudo find / -name * .rdb

    删除dump.rdb文件。

    注意:rdb格式版本9在文件开头将带有以下字符串-REDIS0009

  • 相关阅读:
    浏览器F12(开发者调试工具) 功能介绍【转载】
    浏览器F12开发者工具的妙用【转载】
    linux中sed在指定字符前后添加内容
    查看TCP连接的命令【转载】
    Sql 语句删除重复项,保留id最小项
    MySQL中批量前缀表的sql语句
    【转载】登录的测试用例点
    Linux流量监控工具 – iftop
    postman接口添加断言
    测试点思考
  • 原文地址:https://www.cnblogs.com/Neroi/p/13069900.html
Copyright © 2011-2022 走看看