gpt4 book ai didi

linux - mongodb 无法从 mongo.conf 开始

转载 作者:太空宇宙 更新时间:2023-11-04 12:20:18 25 4
gpt4 key购买 nike

操作系统是deepin,我可以用

/home/soft/mongodb/bin/mongod --dbpath=/home/soft/mongodb/data/db --logpath=/home/soft/mongodb/log/mongodb.log --logappend --port 27017 --fork

会正常启动mongodb,但是当我使用

mongod --config /usr/local/mongodb/mongodb.conf will cause some problems like this picture enter image description here if the picture not display,error code :

root@deepin:/# mongod -config /home/soft/mongodb/mongodb.conf 
about to fork child process, waiting until server is ready for connections.
forked process: 3196
ERROR: child process failed, exited with error number 100

运行后日志文件图片如下 enter image description here

最佳答案

  1. 尝试发布日志(如果有的话)。
  2. 检查创建的文件夹的权限,即确保文件夹创建为 sudo install-mongodb-child-process-failed-exited-with-error-number-100
  3. 也试试这个 mongodb-wont-start-error-child-process-failed-exited-with-error-number-100

关于linux - mongodb 无法从 mongo.conf 开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46210773/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com