2016-03-09 36 views
-1

我目前正在使用MongoDB。我想訪問我的瀏覽器通過蒙戈DB提供的管理頁面,但得到這個錯誤:MongoDB中的錯誤

It looks like you are trying to access MongoDB over HTTP on the native driver port.

請幫我解決我的問題。

+0

其中['port'(https://docs.mongodb.org/ecosystem/tools/http-interfaces/#http-status-interface)你嘗試連接至? – BatScream

+0

哪個管理頁面? –

+0

'27017'是我嘗試訪問的端口 –

回答

1

MongoDB Docs

27017 The default port for mongod and mongos instances. You can change this port with port or --port.

和你正在尋找這樣的:

28017 The default port for the web status page. The web status page is always accessible at a port number that is 1000 greater than the port determined by port.

端口27017使用與您喜愛的MongoDB的客戶端應用程序來訪問數據庫中的數據(Robomongo,例如)。端口28017用於訪問您要查找的網頁狀態頁面。所以,試試這個在您的瀏覽器:

http://localhost:28017/