mongodb启动失败-1

进程是使用supervisor启动的
服务器重启之后mongodb起不来
日志报错如下:

exception in initAndListen: Location28596: Unable to determine status of lock file in the data directory /mnt/mongodb/data/: boost::filesystem::status: Permission denied: "/mnt/mongodb/data/mongod.lock", terminating

InitAndListen中出现异常:location28596:无法确定数据目录/mnt/mongodb/data/:boost::filesystem::status:permission denied:“/mnt/mongodb/data/mongod.lock”中的锁文件状态,正在终止
删除掉/mnt/mongodb/data/mongod.lock 又报以下错误:

exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory: /mnt/mongodb/data/, terminating

解决:
由于之前的环境只是临时关闭firewalld、selinux,重启服务器后这两个服务又开始工作。所以手动关闭并设置开机不启动。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容