Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Port to Use For MongoDB?

Tags:

port

mongodb

I am trying an example at Spring 3 with MongoDB. I can reach MongoDB's interface on port 28017. However examples use 27017 in configuration files. Which one to use?

like image 323
kamaci Avatar asked Jan 18 '23 12:01

kamaci


1 Answers

28017 is admin interface and admin operations can be checked from there via web. However when using MongoDb at applications 27017 should be defined as port. When trying to reach that port given information is that:

You are trying to access MongoDB on the native driver port. For http diagnostic access, add 1000 to the port number
like image 193
kamaci Avatar answered Jan 28 '23 02:01

kamaci