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!
Similar Posts:
- [Solved] Mongodb Error: NETWORK [thread1] Failed to connect to 127.0.0.1:27017
- [Solved] MongoDB Start ERROR: child process failed, exited with error number
- mongoexport E QUERY SyntaxError: Unexpected identifier
- No package mongodb-org available. [How to Solve]
- Unable to start mongod after installing mongodb in Ubuntu
- Error: couldn’t connect to server 127.0.0.1:27017
- mongodb:E QUERY [thread1] SyntaxError: missing ; before statement @(shell):1:4
- Raspberry pie: How to Solve Mongodb installation error
- mongodb not authorized on admin to execute command [version 3.2.18]
- [Solved] Mongodb startup error: about to fork child process, waiting until server is ready for connections.