ERROR: child process failed, exited with error number 48

在启动Mongodb时报错如下:(只要是启动的命令,所有启动命令)

about to fork child process, waiting until server is ready for connections.
forked process: 6873
ERROR: child process failed, exited with error number 48
To see additional information in this output, start without the "--fork" option.

 这是因为已经启动了一个服务,查看:

ps -ef | grep mongo

 那就先关闭掉,(如果药操作数据也可以直接操作哈),

进入mongodb安装路径的bin目录下,

使用 mongo  命令直接进入,然后 use admin ,再 db.shutdownServer(),最后 exit 即可。

这样之后就可以重新启动了。

 下面是我运行的命令:(做参考)

猜你喜欢

转载自blog.csdn.net/weixin_52875840/article/details/130202747