ERROR: child process failed, exited with error number 100 mongodb报错

网上参考删除mongod.lock,但此文件在哪里呢,我是阿里云服务器linux安装的mongodb,位置在/var/mongodb/data   数据存储的文件夹下,不是什么mongo文件下

还要日志文件也可以全部删除

然后重启

ok

要正常退出:./mongo==>use admin==>db.shutdownServer()

再下一个问题,启动后,网页打开怎么没有呢,端口号是不是还是27017,ip是什么?

/usr/local/mongodb/bin/mongod --dbpath=/var/mongodb/data/tenData --logpath /var/mongodb/logs/log.log --port=27017 -fork     添加端口号

然后再在服务器控制台的安全组==》配置规则==》

好了,然后网页打开你的公网ip+27017:

You are trying to access MongoDB on the native driver port. For http diagnostic access, add 1000 to the port number
让加1000,不管

原文地址:https://www.cnblogs.com/hhweb/p/7058237.html