Hi @Kodumuri_Raghavender,

If you want to manually create a service definition and config file, you can find the versions used in the RPM packages in the MongoDB source on GitHub: mongo/rpm at master · mongodb/mongo · GitHub.

If you just need a different install path, the MongoDB RPMs should also be relocatable using the --prefix option for yum/dnf.

For example: sudo rpm --prefix /home/mongodb/ mongodb.rpm.

Regards,
Stennie

3 Likes