1. 程式人生 > >mongodb及相關元件安裝

mongodb及相關元件安裝

mongodb

rockmongo

  1. Install PHP runtime environment if you don’t have one yet, such like Apache Httpd, Nginx …

  2. Unzip the files, the package of rockmongo, into your disk, under root of your site
    e.g. rockmongo/
    the default root directory of web site in linux system: /var/www/
    if the apache installed at /usr/local/apache2/, the directory is : /usr/local/apache2/htdocs/
  3. Open the config.php with your convenient editor, change host, port, admins and so on to yours
    the config.php is in rockmongo/

  4. Login with admin username and password, which is set “admin” and “admin” as default
  5. Play with your MongoDBs!

pymongo

2.unzip the package

tar -zxvf pymongo-2.8.tar.gz

3.install with: sudo python setup.py install
4.test in python

import pymongo