Install and use MongoDB easily with MongoCTL (only linux or Mac OSX)

1) First install python : http://www.python.org/download/

    Don’t forget to add the python install folder in the path of your environnement variable

2) install this script setupTools by running it with the python command :     

%  python ez_setup.py

3) Install pip :

% git clone https://github.com/pypa/pip.git
% cd pip                                   
% python setup.py install

    Don’t forget to add the fucking pyton scripts folder in the path of your environnement variable
    ex: C:\Python33\Scripts

4) install MongoCTL

$ sudo pip install mongoctl

5) install MongoDB

mongoctl install-mongodb

6) Start/Connect server:

mongoctl start MyServer
mongoctl connect MyServer
mongoctl print-uri MyServer
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s