MongoDB发生Can't take a write lock while out of disk space错误解决方法
来源:互联网 发布:联华文具淘宝 编辑:程序博客网 时间:2024/04/28 12:44
先停止mongodb服务
service mongodb stop
就去/etc//mongodb.conf
修改
nojournal = true
smallfiles = true
noprealloc = true
将lock文件删除
rm /var/lib/mongodb/mongod.lock
最好也把journal日志删除,那玩意也很占硬盘
rm -rf /var/lib/mongodb/journal/*
重启mongodb服务
service mongodb start
mongodb 删除数据库
use test; //要删除的库,先要进入
db.dropDatabase(); //删除库命令
mongodb删除表
db.mytable.drop();
0 0
- MongoDB发生Can't take a write lock while out of disk space错误解决方法
- MongoDB发生Can't take a write lock while out of disk space错误解决方法
- MongoDB发生Can't take a write lock while out of disk space错误解决方法
- LR错误: Commands out of sync; you can't run this command now 解决方法
- CAN'T TAKE MY EYES OF YOU
- MongoDB的waring:ClientCursor::staticYield can't unlock b/c of recursive lock ns
- warning: ClientCursor::staticYield can't unlock b/c of recursive lock ns的解决方法
- Can't lock file (errno: 170) 错误
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- How To Avoid Disk Full Issues Because OPatch Backups Take Big Amount Of Disk Space. (文档 ID 550522.1)
- sql server 出现Can't start a cloned connection while in manual transaction mode 的解决方法
- Can't start a cloned connection while in manual transaction mode的解决方法
- Can't start a cloned connection while in manual transaction mode.解决方法
- 错误 Angular2 Can't bind to 'routerLink' since it isn't a known property of 'a'
- Commands out of sync; you can't run this command now错误
- makeimg: FATAL ERROR: Out of buffer space 错误问题的解决方法
- hbase thrift 访问队列
- c语言面试题 指针30个常错题型
- 大白话解析模拟退火算法
- 原生JavaScript技巧大收集
- 蜗牛—JavaWeb之个人信息管理系统(四)
- MongoDB发生Can't take a write lock while out of disk space错误解决方法
- Neural Networks code
- html 中的映射
- HTTP基础
- VC++中_T与L的区别
- eda课程设计,求救!!!!!!!!
- 物化视图实践(2)----刷新组管理
- 荀子 《劝学》
- 从This Handler class should be static or leaks might occur!警告说起