I am installing mongodb 3.6 on RHEL 8.5, it worked fine, I am using custom directories for data and logs, after implementing the step on the guide (Install MongoDB Community Edition on Red Hat or CentOS — MongoDB Manual) for ‘Configure SELinux’ is does not want to start anymore.
sudo systemctl start mongod
Job for mongod.service failed because the control process exited with error code.
See “systemctl status mongod.service” and “journalctl -xe” for details.
systemctl status mongod.service
● mongod.service - MongoDB Database Server
Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2022-06-08 19:50:49 UTC; 1min 2s ago
Docs: https://docs.mongodb.org/manual
Process: 32032 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=1/FAILURE)
Process: 32031 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
Process: 32029 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
Process: 32027 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
Main PID: 22352 (code=exited, status=0/SUCCESS)
Would you know what the problem might be, or how can I rolled back the ‘Configure SELinux’ steps,
Thanks a lot
Ivan