mongodb - mongo使用db.shutdownServer停止服务后,mongo.lock文件未被删除
PHPz
PHPz 2017-04-24 09:13:43
0
1
878

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

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

PHPz
PHPz

学习是最好的投资!

reply all(1)
黄舟

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template