Take the 2-minute tour ×  I am new to mongodb,I would like to
know is it possible to run both mongod and mongos instance at a
time.  share|improve this question add comment  1 Answer  up
vote 1 down vote accepted  Yes, it is possible, but you'll need
to use different tcp ports as both mongod and mongos are using
the same 27017 by default. You can specify ports using --port
<port> flag as noted in mongod and mongos docs.  share|improve
this answer add comment  Your Answer