Chapter 2: Setting Up Replica Set

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

which contain

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.

You are suppose to use IDE for this course
Above IP is not valid in IDE.Just use localhost for bindIp
What is the issue if you use fork?
Check mongod.log for more errors
Follow your lab instructions and use only the required parameters

Hi, this IP also listed in the course material, I just follow the same setup.

When I take out the IP, it does work.

May be the course material is not updated
That IP is applicable only in Vagrant which was used in older course