我使用db.shutdownServer停止服务,日志里显示了
mongo.lock的权限也是打开的,但是没有删除成功,导致我下次启动进程的时候还有手动删除,这是什么原因?
学习是最好的投资!
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.
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.