A-A+

记录两个小问题

2021年03月30日 LNMP 暂无评论 阅读 1 次围观 次

1、 yum 安装时报错Error: rpmdb open failed

1
2
3
4
5
6
7
rpmdb: Thread/process 32201/139655171360672 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed

RPM数据库损坏了
处理方法:

1
2
3
4
cd /var/lib/rpm/
for i in `ls | grep 'db.'`;do mv $i $i.bak;done
rpm --rebuilddb
yum clean all

2、军哥的lnmp redis重启报错

1
Could not connect to Redis at 127.0.0.1:6379: Connection refused

处理方法:

重启redis后台服务

1
2
cd /usr/local/redis/bin
./redis-server  ../etc/redis.conf
标签:

给我留言

Copyright © 老牛博客 保留所有权利.   Theme  Ality

用户登录