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






网友评论