【MongoDB 】安裝環境與相關的圖像界面工具

【MongoDB 】

一、安裝與運行
1、安裝
2、運行start.bat \ startMongoDB.bat :
3、訪問http://localhost:27017/ 顯示:
It looks like you are trying to access MongoDB over HTTP on the native driver port.:表示mongo服務已開啓
4、修改startMongoDB.bat打開http方式:
E:\mongod\mongo-driver_and_binary\bin\mongod --port 27017 --storageEngine mmapv1 -dbpath “E:\mongod\mongo-driver_and_binary\data” --smallfiles --profile=2 --httpinterface
5、訪問http://localhost:28017/ 如下
在這裏插入圖片描述
默認情況下,啓動mongod時還會啓動一個基本的HTTP服務器,該服務器監聽的端口號比主服務的端口號大1000。這個服務提供了HTTP接口,可以查看Mongodb的一些基本信息。這些信息也可以通過shell來查看。比如說你啓動的是默認端口27017,那麼在瀏覽器打開http://10.0.0.13:28017 但是你打開的時候可能沒有,因爲默認管理接口是關閉的,所以在啓動的時候加上開啓管理接口參數**–httpinterface**,也就是 mongodb/bin/mongod --dbpath mongodb/0706 --fork --logpath 0706.log --httpinterface

二、MongoDB 圖像化界面工具:
① NoSQLBooster for MongoDB (應用版)
Error:authentication failed 即賬號錯誤
② Rockmongo(web版)
項目鏈接:https://github.com/iwind/rockmongo
1、拉代碼 E:\mongod\rockmongo-on 文件夾
2、rockmongo 修改.\web\rockmongo\config.php

$MONGO["servers"][$i]["mongo_host"] = "10.17.172.244";//mongo host
$MONGO["servers"][$i]["mongo_port"] = "27017";//mongo port

3、運行rockstop.bat
4、運行rockstart.bat
5、輸入正確賬號信息
參考:
http://www.runoob.com/mongodb/working-with-rockmongo.html
https://blog.csdn.net/sunshinegyan/article/details/78364003

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章