about to fork child process, waiting until server is ready for connections.
forked process: 6174
ERROR: child process failed, exited with error number 48
To see additional information in this output, start without the "--fork" option.
但其實 --fork並不能起作用
1.先清除data里的.lock文件
刪除log里的config.log和configsvr.pid
2.修復模式啟動
/www/server/mongodb/bin/mongod -f /www/server/mongodb/config.conf --repair (路徑填寫自己的mongodb所在地址)
得到提示:
about to fork child process, waiting until server is ready for connections.
forked process: 7701
child process started successfully, parent exiting
成功修復
mongodb的異常關閉都會導致鎖死無法啟動,推薦mongod --shutdown -f .地址/mongodb.conf
千萬不要 kill -9 pid