1、docker 运行mongodb 两个多月都没出什么事情,突然就挂了
错误:exception in initAndListen: Location28596: Unable to determine status of lock file in the data directory /data/db: boost::filesystem::status: Permission denied: "/data/db/mongod.lock", terminating
说明:查看日志,大概意思就是文件权限不够
解决:chmod -R 770 /data/db/mongodb (这里的/data/db/mongodb地址是docker映射到本地地址)