Lab - Launching Mongod HostNotFound

Here is the task:

  • run on port 27000
  • data files are stored in /data/db/
  • listens to connections from the IP address and localhost
  • authentication is enabled

I issued

mongod --bind_ip locahost, --auth --port 27000

and get the error

 W  NETWORK  [initandlisten] Found no addresses for HostNotFound: Could not find address for locahost:27000: SocketException: No such host is known.
 E  STORAGE  [initandlisten] Failed to set up listener: SocketException: The requested address is not valid in its context.

I know our server is running on port 27017. So why the lab ask to connect to 27000 then?

Sorry. Forgot to run in the shell. Now it is working.

Closing this thread as the issue has been resolved.