HI @Aayushi_Mangal,
Please provide more details on your environment:
-
What specific Linux distro and version are you referring to as Linux 18?
-
What service manager are you using?
Most modern Linux distros use systemd for service management and init scripts, with the older SysV-style init (/etc/rc.local) only existing for backwards compatibility. Configuring and managing services isn’t specific to MongoDB, so tutorials for managing other services for your O/S should be applicable.
Note: running multiple MongoDB services on a single host without any sort of containers or resource management (lxc, cgroups, Docker, etc) generally isn’t recommended as all processes will be competing for the same resources.
Regards,
Stennie