search

Home  >  Q&A  >  body text

mongodb - mongo使用db.shutdownServer停止服务后,mongo.lock文件未被删除

我使用db.shutdownServer停止服务,日志里显示了

mongo.lock的权限也是打开的,但是没有删除成功,导致我下次启动进程的时候还有手动删除,这是什么原因?

PHPzPHPz2796 days ago882

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-24 09:15:43

    Okay, I misunderstood the concept. Using the shutdownServer command will not delete the mongo.lock file, but it will clear the mongod pid recorded in the file. The new pid will be written in when mongod is restarted next time.

    reply
    0
  • Cancelreply