<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 閱讀(1879) 評論(0)  編輯  收藏 所屬分類: DB

    主站蜘蛛池模板: 免费人成在线观看网站视频 | 四虎影视精品永久免费网站| 亚洲Aⅴ无码一区二区二三区软件| 久久精品亚洲乱码伦伦中文| 久久亚洲sm情趣捆绑调教| 亚洲国产综合AV在线观看| 国产精品免费无遮挡无码永久视频 | 久久免费观看国产精品| 亚洲日产韩国一二三四区| 亚洲色中文字幕在线播放| 久久久久国色av免费看| 免费人成激情视频| 日韩电影免费在线观看网址| 69天堂人成无码麻豆免费视频| 中文亚洲AV片不卡在线观看| 亚洲国产欧美日韩精品一区二区三区| 一区二区无码免费视频网站| 亚洲产国偷V产偷V自拍色戒| 深夜久久AAAAA级毛片免费看| 免费三级毛片电影片| 婷婷久久久亚洲欧洲日产国码AV| 污网站免费在线观看| 久久精品国产亚洲一区二区三区| 中文字幕无码免费久久| 亚洲精品国产精品乱码不卡 | 亚洲精品第一国产综合精品| 国产VA免费精品高清在线| 热99re久久精品精品免费| 亚洲图片激情小说| 日本在线看片免费人成视频1000 | 无码人妻精品中文字幕免费东京热| 亚洲国产成人久久| 曰批视频免费40分钟试看天天| 亚洲av伊人久久综合密臀性色 | 国产一级高清视频免费看| eeuss影院免费92242部| 久久久无码精品亚洲日韩京东传媒| 黄色成人网站免费无码av| 亚洲av无码国产综合专区| 19禁啪啪无遮挡免费网站| 亚洲精品成a人在线观看夫|