The Installation Tutorials in the MongoDB manual have instructions for installing in supported operating systems (Linux, Windows, macOS, …).
Installation in a desktop or laptop environment is similar to installing in a hosted environment, but hosting providers will often have specific firewall and network configuration steps.
I strongly recommend reviewing the MongoDB Security Checklist to ensure your deployment is properly secured.
If you run into any installation or configuration issues, this is a good forum to ask questions in. Including some information on your environment (specific O/S version, MongoDB server version, tool/driver version, …) and the problem you are encountering (steps to reproduce, expected outcome, and actual outcome) will help get faster and more relevant suggestions.
Regards,
Stennie