服务器断电后 redis重启后启动不起来

服务器断电后 redis 重启后启动不起来

缘由:db持久化失败git

1. 先查询redis的进程 ps -ef|grep redis

2. 查询redis的缓存文件在哪 whereis dump.rdb

ps -ef|grep redis
    [root@localhost ~]# ps -ef|grep redis
    root     12963  1773  0 1月21 ?       00:00:00 runsv redis
    root     12964  1773  0 1月21 ?       00:00:00 runsv redis-exporter
    root     12965 12964  0 1月21 ?       00:00:00 svlogd -tt /var/log/gitlab/redis-exporter
    root     12966 12963  0 1月21 ?       00:00:00 svlogd -tt /var/log/gitlab/redis
    gitlab-+ 12967 12964  0 1月21 ?       00:06:59 /opt/gitlab/embedded/bin/redis_exporter --web.listen-address=localhost:9121 --    redis.addr=unix:///var/opt/gitlab/redis/redis.socket
    gitlab-+ 12968 12963  0 1月21 ?       00:26:41 /opt/gitlab/embedded/bin/redis-server 127.0.0.1:0
    root     13691     1  0 1月21 ?       00:02:41 /usr/local/bin/redis-server 0.0.0.0:6379
    root     30413 30365  0 10:14 pts/7    00:00:00 grep --color=auto redis
----------------------------
     whereis dump.rdb
    [root@localhost ~]# whereis dump.rdb
    dump: /usr/local/bin/dump.rdb

删除关键进程下的缓存文件
root 13691 1 0 1月21 ? 00:02:41 /usr/local/bin/redis-server 0.0.0.0:6379web

dump: /usr/local/bin/dump.rdbredis

删除后 从新启动redis 就行了缓存

相关文章
相关标签/搜索