1.

mongo looks for a database server listening on port 27017 on the ________ interface.(a) web(b) localhost(c) web host(d) all of the mentionedThe question was posed to me during an interview.I would like to ask this question from Getting Started with MongoDB in section MongoDB CRUD Concepts and Operation of MongoDB

Answer»

The correct option is (b) localhost

The EXPLANATION is: To connect to a server on a DIFFERENT PORT or INTERFACE, use the –port and –host options.



Discussion

No Comment Found

Related InterviewSolutions