Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>
The following error occurred when starting mongodb in the morning:
MongoDB:Unclean shutdown detected
The solution is:
1. When there is no specified folder for data storage:
$ mongod –repair
2. When specifying the folder for data storage:
$ mongod –repair –dbpath=/data/mongodb/db
When finished, restart mongodb