Solution steps:
Find the mongodb configuration file and make the following adjustments
replication:
oplogSizeMB: <int>
replSetName: <string>
enableMajorityReadConcern: <boolean>
After restarting the mongodb service, enter Mongo for execution
rs.initiate()
- Done!