關於mongodb無法啟動的問題


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM