<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Chan Chen Coding...

    MongoDB Admin Tool -- RockMongo Install for Ubuntu

    Since from the first time to use MongoDB in my own project, more than one month has passed. During this last month, I have to say MongoDB is powerful, and suit my project well, but it is hard to manage/admin the database. and the way of display json data is ugly by the build-in mongo commomd. For instance,

    > db.User.find()
    { "_id" : ObjectId("4f657b5e6803fa511a000000"), "about" : "Change the way people learn", "blackListCreateTime" : "2012-03-16 13:00", "createTime" : "2012-03-16 13:00", "email" : "admin@stdtlk.com", "fanCreateTime" : "2012-03-16 13:00", "fanId" : [     ObjectId("4f657b5e6803fa511a000000"),     ObjectId("4f657b5e6803fa511a000000") ], "firstName" : "chan", "lastName" : "chen", "levle" : "0", "password" : "admin", "photoURL" : "img/admin.jpg", "school" : "Stdtlk University", "title" : "starter" }
    { "_id" : ObjectId("4f6582986803fa3d1a000000"), "about" : "I like the way to learn", "blackListCreateTime" : "2012-03-16 13:00", "createTime" : "2012-03-16 13:00", "email" : "google@stdtlk.com", "fanCreateTime" : "2012-03-16 13:00", "fanId" : [     ObjectId("4f657b5e6803fa511a000000"),     ObjectId("4f657b5e6803fa511a000000") ], "firstName" : "google", "lastName" : "google", "levle" : "0", "password" : "google", "photoURL" : "img/google.jpg", "school" : "AAA University", "title" : "starter" }
    { "_id" : ObjectId("4f6582cc6803fa501a000003"), "about" : "Apple is greate", "blackListCreateTime" : "2012-03-16 13:00", "createTime" : "2012-03-16 13:00", "email" : "apple@stdtlk.com", "fanCreateTime" : "2012-03-16 13:00", "fanId" : [     ObjectId("4f657b5e6803fa511a000000"),     ObjectId("4f657b5e6803fa511a000000") ], "firstName" : "apple", "lastName" : "apple", "levle" : "0", "password" : "apple", "photoURL" : "img/apple.jpg", "school" : "BBB University", "title" : "starter" }
    { "_id" : ObjectId("4f6582ec6803faa91c000000"), "about" : "microsoft is old", "blackListCreateTime" : "2012-03-16 13:00", "createTime" : "2012-03-16 13:00", "email" : "microsoft@stdtlk.com", "fanCreateTime" : "2012-03-16 13:00", "fanId" : [     ObjectId("4f657b5e6803fa511a000000"),     ObjectId("4f657b5e6803fa511a000000") ], "firstName" : "microsoft", "lastName" : "microsoft", "levle" : "0", "password" : "microsoft", "photoURL" : "img/microsoft.jpg", "school" : "CCC University", "title" : "starter" }

    All documents are outputted in one line, if the document has a field which have huge length of characters, it is not easy to find out and read what we look for. So I look around on the internet, and read the MongoDB Admin UI, it recommend some useful tools to admin the database. RockMongo is tool that catch my eyes, and many folks on stack overflow also put some positive feedback on this tool, hence I decide to try it out. Here are the steps to install Rockmongo on Ubuntu.
    1. Install apache2, php5
    sudo apt-get install apache2 php5 php5-dev php5-cli

    2. Install php mongo driver
    pecl install mongo

    3. Config php.ini
    root@ubuntu:~# find / -name php.ini
    /etc/php5/apache2/php.ini
    /etc/php5/cli/php.ini
    root@ubuntu:~# echo "extension=mongo.so" >> /etc/php5/apache2/php.ini

    4.check php install successfully
    root@ubuntu:~# sudo find / -name www
    /var/www
    root@ubuntu:~# sudo echo "<? phpinfo() ?>" >> /var/www/info.php
    open http://localhost/info.php
    if everything goes ok, this page will display

























    5. download rockmongo from rockmongo
    root@ubuntu:/var/www# cd /var/www
    root@ubuntu:/var/www# wget http://rock-php.googlecode.com/files/rockmongo-v1.1.0.zip
    root@ubuntu:/var/www# unzip rockmongo-v1.1.0.zip -d rockmongo

    6. lunch mongod

    7. restart apache server
    root@ubuntu
    : /etc/init.d/apache2 restart

    8. open http://localhost/rockmongo/index.php  by default, username and password are both admin.



     

    -----------------------------------------------------
    Silence, the way to avoid many problems;
    Smile, the way to solve many problems;

    posted on 2012-03-18 15:54 Chan Chen 閱讀(1878) 評(píng)論(0)  編輯  收藏 所屬分類: DB

    主站蜘蛛池模板: 亚洲欧洲精品无码AV| 免费99热在线观看| 亚洲国产综合自在线另类| 嫩草在线视频www免费观看| 久久精品国产精品亚洲艾| 免费福利在线视频| 亚洲图片在线观看| 国产1000部成人免费视频| a毛看片免费观看视频| 久久笫一福利免费导航| 亚洲一级大黄大色毛片| 97人伦色伦成人免费视频| 国产婷婷综合丁香亚洲欧洲| 国产美女在线精品免费观看| 亚洲精品国产第一综合99久久| 四虎免费久久影院| A毛片毛片看免费| 久久精品国产亚洲AV大全| 国色精品卡一卡2卡3卡4卡免费| 亚洲日韩精品A∨片无码加勒比| 在线看片无码永久免费aⅴ| 国产精品综合专区中文字幕免费播放| 在线精品亚洲一区二区小说 | 午夜亚洲www湿好大| av无码免费一区二区三区| 亚洲日韩精品无码专区| 亚洲美女高清一区二区三区| 免费毛片在线看不用播放器| 亚洲国产成人精品久久| 亚洲av无码成人精品区| 无码一区二区三区免费| 亚洲熟女www一区二区三区| 亚洲区不卡顿区在线观看| 鲁大师在线影院免费观看| 77777午夜亚洲| 亚洲狠狠婷婷综合久久久久| 香蕉97超级碰碰碰免费公| 一级毛片成人免费看a| 亚洲日韩乱码中文无码蜜桃| 四虎永久免费地址在线网站| 99久久免费精品高清特色大片|