MongoDB 启动失败 Unable to determine status of lock file in the data directory


MongoDB 启动失败 Unable to determine status of lock file in the data directory

解决:

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

关闭 SELinux

临时关闭:输入命令

1
setenforce 0

永久关闭:输入命令

1
2
vi /etc/selinux/config
将 SELINUX=enforcing 改为 SELINUX=disabled

关闭防火墙

1
2
systemctl stop firewalld.service
systemctl disable firewalld.service