开发者

MongoDb Remote Server

I got a work of node.js and mongodb. While running node.js it gives error o开发者_StackOverflow中文版f 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/
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜