MongoDB GUI 之 RockMogo

   
转移 http://aikin.me/2014/03/15/mongodb-gui-rockmongo/

RockMongo 是一个PHP5写的,开源的 MongoDB 管理工具。

   官网: http://rockmongo.com/wiki/introduction?lang=zh_cn

    github: https://github.com/iwind/rockmongo

 

   1. 安装 php:

   在终端输入:

sudo apt-get install apache2 php5 php5-dev dh-make-php
 

   终端最后几行显示:

......

正在设置 php5 (5.4.9-4ubuntu2.4) ...
正在设置 php5-dev (5.4.9-4ubuntu2.4) ...
update-alternatives: using /usr/bin/php-config5 to provide /usr/bin/php-config (php-config) in 自动模式
update-alternatives: using /usr/bin/phpize5 to provide /usr/bin/phpize (phpize) in 自动模式
       2. 安装 RockMongo 

   (1).下载RockMongo:

 sudo wget http://rock-php.googlecode.com/files/rockmongo-v1.1.2.zip
   

    终端显示:

HTTP request sent, awaiting response... 200 OK
Length: 315486 (308K) [application/zip]
Saving to: ‘rockmongo-v1.1.2.zip’
 
100%[==========================================>] 315,486      172KB/s   in 1.8s   
 
2014-03-15 16:52:41 (172 KB/s) - ‘rockmongo-v1.1.2.zip’ saved [315486/315486]
   

    也可以到官网下载:http://rockmongo.com/downloads

   

   (2).解压rockmongo,并将解压后的文件移动到 /var/www 下:

 

sudo  unzip rockmongo-v1.1.2.zip

sudo mv rockmongo /var/www/

sudo chown -R www-data:www-data /var/www/
 

  3. 安装 mongo 依赖:

sudo pecl install -f mongo 2.2.0
  

    显示以下信息表示成功安装:

Build process completed successfully
Installing '/usr/lib/php5/20100525+lfs/mongo.so'
install ok: channel://pecl.php.net/mongo-1.4.5
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongo.so" to php.ini
   

    4. 编辑 php.ini文件 终端输入:

sudo gedit /etc/php5/apache2/php.ini
    

    在文件中加入:

extension_dir = "/usr/lib/php5/20100525+lfs"
extension = "mongo.so" 
    

  最后在终端输入: 

 sudo /etc/init.d/apache2 restart

  将会出现以下显示:

  * Restarting web server apache2                                                    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                             [ OK ]

  使用 rockmongo, 在浏览器上输入url:http://127.0.1.1/rockmongo/

  将会出现:


 

默认的登入的用户名和密码: admin admin  。 登陆后将会出现:



 

现在你可以查看 mongoDB 数据库中的信息,可以修改和添加等。
 

 

还有其它的 MongoDB 图形管理(都是开源的)

     mongohub:      http://mongohub.todayclose.com/ (https://github.com/bububa/MongoHub)

     genghis:           http://genghisapp.com/  (https://github.com/bobthecow/genghis) 

     phpMoAdmin:   http://www.phpmoadmin.com/

                              (https://github.com/MongoDB-Rox/phpMoAdmin-MongoDB-Admin-Tool-for-PHP)

     robomongo:      http://robomongo.org/ (https://github.com/paralect/robomongo/)

     umongo:           http://www.edgytech.com/umongo/  (https://github.com/agirbal/umongo)

 

    本人推荐使用 robomongo

猜你喜欢

转载自unremittingly.iteye.com/blog/2030487