The command to start a Replica Set in the MongoDB Shell is rs.initiate().
What is the opposite of this command. How do I stop the replica set?
There are commands
Go to mongo shell on Secondary servers
Stop the secondary servers by using below command:
use admin db.shutdownServer()
2] Go to Linux shell- on secondary servers and type below command:
sudo service mongod stop
For more information, Please check the below link:
http://www.tutorial-points.com/2016/03/stopping-and-starting-mongodb.html