简体   繁体   中英

MongoDb Remote Server

I got a work of node.js and mongodb. While running node.js it gives error of permission denied.

For going alternatively when I tried to connect to remote server

You are trying to access MongoDB on the native driver port. For http diagnostic access, add 1000 to the port number...

I just want to reach to the REMOTE DB of client so that I can configure it on local end and experiment things.....

Thanks

The error message means that you have tried to use a web browser to connect to the MongoDB native port, eg:

http://localhost:27017

If you want to use the MongoDB interactive shell to try database commands, you need to use the command line mongo :

$ mongo

MongoDB shell version: 2.0.6
connecting to: test
> 

mongo will connect to localhost:27017 by default. You can also specify a host and port, eg:

mongo localhost:27017

The mention of connecting by adding 1000 to the port number is referring to the MongoDB simple REST interface which is a read-only administrative interface accessible via a web browser:

http://localhost:28017/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM