记录两个小问题

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
原文链接:https://xiaohost.com/3602.html,转载请注明出处。
0

评论0

请先