Hello, I apologize If I put this topic in the wrong category.
I am learning MongoDB and I can run my service fine without replication.
My mongod.exe Version is v6.0.7 and MongoDBCompass.exe is v1.38.2
But when I add to my cfg file the following lines
replication:
replSetName: rs0
and try to restart the service I get the Error 1503.
What I did so far:
- Check Storage and SystemLog Paths and permissions.
- Check If cfg file have tabs instead of spaces.
- Uninstall and Install MongoDB.
Am I missing something crucial?
I would appreciate the help, bellow is my edited config file.
Thanks,
P. Costa
my cfg
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: ...\MongoDB\Server\6.0\data
journal:
enabled: true
# engine:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: ...\Program Files\MongoDB\Server\6.0\log\mongod.log
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1 #, machineIP
security:
authorization: enabled
#replication:
# replSetName: rs0
#operationProfiling:
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp: