I noticed that the lecture instructions will have the student to start a standalone instance of
mongod. Standalone instances do not have an oplog. Since we are learning replication we probably need to start a replicaset.
The command that the lecture instructions has us to run is:
mongod --dbpath allbymyselfdb
The command I ran to start a replicaset was:
mongod --dbpath allbymyselfdb --replset albymyseelf
Running that guy will set us on the right path.
Also after starting the mongo processs using
mongo in a different shell, we’ll want to use this guy:
After that we can then run these:
This may need to be changed in the lecture so that the student isn’t confused.