mongodb启动报错,child process failed, exited with error number 1

 error: child process failed, exited with error number 1

第一次安装mongodb,随后启动一般不会出现上面的错误,出现这种错误的原因一般是mongodb进程非正常关闭导致的(例如用kill关闭mongo),导致出现mongod.lock这个文件

解决方案一:

# find / -name "mongod.lock"

找到对应的文件,删除即可

解决方案二:

查看mongodb.conf的配置,检查 dbpath 和 logpath 对应的路径是否存在,不存在则创建

解决方案三:

使用 repair 修复

# ./mongod --repair

解决方案四:

删除 logpath 对应的目录

原文地址:https://www.cnblogs.com/lyc94620/p/11825335.html

时间: 2024-11-08 22:36:55

mongodb启动报错,child process failed, exited with error number 1的相关文章

liunx启动mongodb报错 mongodb child process failed, exited with error number 14

mongodb启动报错:mongodb child process failed, exited with error number 14,查看mongodb.cnf日志,发现其中有一条:Too many open files at src/mongo/db/storage/wiredtiger/wiredtiger_session_cache.cpp 79. 设置ulimit -n 10000.完美! 原文地址:https://www.cnblogs.com/shilang/p/1019748

Mongodb中经常出现的错误(汇总)child process failed, exited with error number

异常处理汇总-服 务 器 http://www.cnblogs.com/dunitian/p/4522983.html 异常处理汇总-数据库系列  http://www.cnblogs.com/dunitian/p/4522990.html 情况不唯一,这边只能当参考,大致就是这么几种解决思路 child process failed, exited with error number 1 child process failed, exited with error number 48 chi

ERROR: child process failed, exited with error number 51

1.ERROR: child process failed, exited with error number 51 异常的关闭再次重启时容易产生这样的错误,首先删除mongod.lock 文件  修复  再次启动 . 2.Error parsing INI config file: unrecognised option 'configdb' 仔细看下图操作,mongos启动时用mongos而不是mongod 原文地址:https://www.cnblogs.com/tszc/p/856819

[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.conf Assuming you installed mongo using Brew. More information about the mongod process here EDIT Try to repair mongo using : mongod --repair Seems to

Springboot启动报错:child container failed during start

Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;引入了一个hsf pom文件后后,翻到异常堆栈最下面发现是:ServletContext没有getVirtualServerName方法,原因是pom冲突,解决方案:在hsf里面先排除就得servlet-api,在引入最新的:A child container failed dur

Mysql启动报错解决方案:Failed to open log (file './mysql-bin.000901', errno 2)

ps -ef|grep mysql 发现里边没有mysql进程,于是进行重启. service mysqld start报错 查看错误日志 tail -100 /usr/local/mysql/var/iZ11yohng9aZ.err(主机名.err) 180223 15:31:51 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var 180223 15:31:51 InnoDB: The Inn

ubuntu中supervisor的报错child process was not spawned

一.问题描述 ubuntu18.04安装supervisor.按照步骤装完,能看的到管理网页.但是一直启动不起来. 查看日志显示: supervisor: couldn't chdir to /.../: ENOENT supervisor:child process was not spawned 二.解决办法 从新写了一下 进程配置文件.进程配置文件中的 '' ; ' 前必须有空格号.最终的两个配置文件如下 1.supervisor配置文件 存储路径:/etc/supervisor/supe

nginx 配置nginx.conf 启动报错 getpwnam("nginx") failed 解决方案

没有安装nginx用户导致的无法启动 useradd -s /sbin/nologin -M nginx 原文地址:https://www.cnblogs.com/jiafeimao-dabai/p/12426282.html

mongo副本集mongos启动报错

背景 项目采用mongo副本集的形式存储数据,经常出现无故断电导致某个副本mongos启动不起来的问题. 环境介绍 mongodb副本集:mongo01:192.168.36.218mongo02:192.168.36.219mongo03:192.168.36.220 报错信息 mongo03副本上mongos启动不起来,执行命令报错: [[email protected] ~]# mongos --configdb 192.168.36.218:20000,192.168.36.219:20