0

I have successfully installed Mongo DB as a Window Service and verified service in my msconfig. It is version 2.0.6 which is compatible of my windows xp 32bit. And I just wanted to use the Simple REST Interface through my browser like localhost:28017/databaseName/collectionName/

I stored some data successfully via NODE.JS and I know I can retrieve the data through command line. But I just really want to view it REST Interface through my browser.

Since the browser shows "REST is not enabled. use --rest to turn on. check that port 28017 is secured for the network too." I think I suppose to enable the --rest on the command line but I don't know how and where to enter it.

  • 1
    this has already been answered here: http://stackoverflow.com/questions/2741039/running-mongod-as-a-windows-service – capsch Jul 23 '13 at 08:50

1 Answers1

2

If MongoDB was installed with a --config file, you can enable rest there:

rest=true

Otherwise, you'll have to re-install MongoDB with a --config file or with --rest enabled after stopping and deleting the existing MongoDB service:

mongod.exe --install --rest ...

Or, through regedit, you can edit the service's ImagePath.

Community
  • 1
  • 1
Jonathan Lonowski
  • 121,453
  • 34
  • 200
  • 199