mongodb启动时报错ERROR: child process failed, exited with error number 1
不多说,直接上干货!
前期博客
Ubuntu14.04下Mongodb安装部署步骤(图文详解)
Ubuntu16.04下Mongodb安装部署步骤(图文详解)

root@zhouls-virtual-machine:/usr/local/mongodb/bin# ls
bsondump mongodump mongoimport mongoreplay mongostat
mongo mongoexport mongooplog mongorestore mongotop
mongod mongofiles mongoperf mongos
root@zhouls-virtual-machine:/usr/local/mongodb/bin# ./mongod --dbpath=/usr/local/mongodb/data/ --fork --logpath=/usr/local/mongodb/log
about to fork child process, waiting until server is ready for connections.
forked process: 5784
ERROR: child process failed, exited with error number 1
root@zhouls-virtual-machine:/usr/local/mongodb/bin#
失败的原因
是因为通过service MongoDB restart时启动失败,或者如果是直接kill 掉来关闭都会出现这种情况
是因为没有正常关闭导致的。
是因为你的配置目录,是否应该要是log配置文件,而很多人都写成了log目录。
解决办法

zhouls@zhouls-virtual-machine:~$ sudo ufw disable
[sudo] password for zhouls:
Firewall stopped and disabled on system startup
zhouls@zhouls-virtual-machine:~$

root@zhouls-virtual-machine:/usr/local/mongodb# ls
bin data GNU-AGPL-3.0 log MPL- README THIRD-PARTY-NOTICES
root@zhouls-virtual-machine:/usr/local/mongodb# rm -rf log/
root@zhouls-virtual-machine:/usr/local/mongodb# ls
bin data GNU-AGPL-3.0 MPL- README THIRD-PARTY-NOTICES
root@zhouls-virtual-machine:/usr/local/mongodb# touch log
root@zhouls-virtual-machine:/usr/local/mongodb# cd bin
root@zhouls-virtual-machine:/usr/local/mongodb/bin# pwd
/usr/local/mongodb/bin
root@zhouls-virtual-machine:/usr/local/mongodb/bin# ls
bsondump mongodump mongoimport mongoreplay mongostat
mongo mongoexport mongooplog mongorestore mongotop
mongod mongofiles mongoperf mongos
root@zhouls-virtual-machine:/usr/local/mongodb/bin# ./mongod --dbpath=/usr/local/mongodb/data/ --fork --logpath=/usr/local/mongodb/log
about to fork child process, waiting until server is ready for connections.
forked process:
child process started successfully, parent exiting
root@zhouls-virtual-machine:/usr/local/mongodb/bin#
mongodb启动时报错ERROR: child process failed, exited with error number 1的更多相关文章
- mongodb启动报错,child process failed, exited with error number 1
error: child process failed, exited with error number 1 第一次安装mongodb,随后启动一般不会出现上面的错误,出现这种错误的原因一般是mon ...
- 【笔记】mongodb启动不了:child process failed, exited with error number 100
今天在启动mongodb的时候,发现起不来,报错:child process failed, exited with error number 100然后先去/var/log/mongo/mongod ...
- Mongodb报错:ERROR: child process failed, exited with error number 1
Mongodb在启动时报错: 2018-10-16T11:18:54.533+0800 I CONTROL [main] Automatically disabling TLS 1.0, to for ...
- ERROR: child process failed, exited with error number 100
[root@localhost ~]# mongod --dbpath=/usr/local/mongodb/data --logpath=/usr/local/mongodb/logs --loga ...
- Mongodb中经常出现的错误(汇总)child process failed, exited with error number
异常处理汇总-服 务 器 http://www.cnblogs.com/dunitian/p/4522983.html 异常处理汇总-数据库系列 http://www.cnblogs.com/dun ...
- mongodb启动不了:提示错误信息为 child process failed, exited with error number 100
[启动mongo 副本集错误提示]: [原因分析说明]: 查询很多资料得知由于上次使用了暴力关闭系统或者DB,导致数据文件锁住. [解决办法]: 1. 在 mongo.conf 文件添加一下属性值 ...
- mongodb启动失败:child process failed, exited with error number 100
参考 http://www.dataguru.cn/thread-107361-1-1.html 里面的路径 根据自己的--dbpath的路径 和l--logpath路径去找
- [mongodb]child process failed, exited with error number 100
Run the following command first to start the mongo server mongod run --config /usr/local/etc/mongod. ...
- (转)Eclipse4.2 Tomcat启动报错 A child container failed during start
Eclipse4.2 Tomcat启动报错 A child container failed during start 2013-5-21 15:02:24 org.apache.catalina. ...
随机推荐
- 149. Best Time to Buy and Sell Stock【medium】
Say you have an array for which the ith element is the price of a given stock on day i. If you were ...
- LeetCode: Combinations 解题报告
Combinations Given two integers n and k, return all possible combinations of k numbers out of 1 ... ...
- tomcat 的线程池配置,字符编码设置
优化tomcat配置 ,修改原先的配置 conf/server.xml 配置 <Executor name="tomcatThreadPool" namePrefix=&q ...
- C语言一闪而过
头文件#include<stdlib.h> main函数system("pause");
- C++控制台读取和输出函数
c中puts()函数用来向标准输出设备(屏幕)写字符串并换行,其调用方式为,puts(s);其中s为字符串字符(字符串数组名或字符串指针). 功 能: 送一字符串到流stdout中 用 法: int ...
- C语言 · 回形取数
基础练习 回形取数 时间限制:1.0s 内存限制:512.0MB 问题描述 回形取数就是沿矩阵的边取数,若当前方向上无数可取或已经取过,则左转90度.一开始位于矩阵左上角,方向向 ...
- 4G模块ME3760_V2 端口映射
/dev/ttyUSB0 ECM // ECM 口 /dev/ttyUSB1 / //ECM口 /dev/ttyUSB2 AT ...
- linux_UAPI_转
转自:Linux Kernel UAPI 问题描述 从3.5开始,Linux Kernel 里多了一个 uapi 文件夹,里面放了很多 Linux Kernel 各个模块的头文件.如果是第一次碰到,可 ...
- 纯CSS实现圆角、可拖动的一个DIV模块层
<style>body{ margin:0px; padding:0px; font-size:14px;}#t { position:absolute; float:left; left ...
- jQueryEasyUi行编辑打造增删改查
var $obj;$(function() { $obj = $("#configQueryGrid"); $obj.datagrid({ loadMsg : '数据加载中请稍后… ...