MongoDb非正常关闭后重启遇到问题

/*********MongoDB重启遇到错误
about to fork child process, waiting until server is ready for connections.
forked process: 10117
ERROR: child process failed, exited with error number 48
To see additional information in this output, start without the “–fork” option.
/********解决方案/
1.首先删掉了mongod.lock
2.以修复命令启动

/usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/mongodb_data/data/ --logpath=/usr/local/mongodb/mongodb_data/log/mongod.log --repair
3. 这俩进程都关闭一下
pkill mongo
pkill mongod
4.启动
/usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/mongodb_data/data/ --logpath=/usr/local/mongodb/mongodb_data/log/mongod.log --fork
完毕!参考https://www.jb51.net/article/109091.htm

你可能感兴趣的:(数据库,php)