开发者

Which Port to Use For MongoDB?

开发者 https://www.devze.com 2023-04-13 03:14 出处:网络
I am trying an example at Spring 3 开发者_StackOverflow中文版with MongoDB. I can reach MongoDB\'s interface on port 28017. However examples use 27017 in configuration files. Which one to use?28017 is

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


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


I find it very interesting by doing a very stupid thing. Added 1000 to 27017 and it become 28017, I access localhost:28017 and the admin panel appeared.

best of luck


I suggest you do not use default port in your application. that is the first hackers are looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号