Hi, i am trying the lecture for Chapter 2 (M103) Setting up the replica set.
I got the below error
ERROR: child process failed, exited with error number 48
I run mongod -f /data/mongodb/db/node1.conf
storage: dbPath: /var/mongodb/db/node1 net: bindIp: 192.168.103.100,localhost port: 27011 security: authorization: enabled keyFile: /var/mongodb/pki/m103-keyfile systemLog: destination: file path: /var/mongodb/db/node1/mongod.log logAppend: true processManagement: fork: true replication: replSetName: m103-example
I got the error msg of: ERROR: child process failed, exited with error number 48
I already check mongod is currently no running by
ps -ef | grep mongod
and to check port usage by
netstat -ntulp | grep <PortNumber>
but no avail.
I know I can probably run this without the fork (as what I previously do), but why I can’t use fork or is there any other problem?
I also restarted the server but no avail.