mongodb启动失败-1

2019-06-27  本文已影响0人  晨曦_zdq

进程是使用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,重启服务器后这两个服务又开始工作。所以手动关闭并设置开机不启动。

上一篇 下一篇

猜你喜欢

热点阅读