Problem statement
- Write a shell script to install, start and initiate the Mongo dB replica set on your local machine with the below requirements.
- The MongoDB version must be v5.0.
- There must be 3 members in the replica set with port numbers 27017,27018 and 27019 respectively.
- Replica set name should be rs0.
- The 3rd member should be an arbiter.
- The WiredTiger cache for all the members should be 1GB
- The configuration to disable javascript execution should be added.