MongoDB Python开发环境搭建
1. Dowload MangoDB
http://www.mongodb.org/downloads download Mac OSX 64-bit
2. unpack(use Command or double click)
tar -xvf mongodb-osx-x86_64-2.6.0 .tgz
3. Create db file
sudo mkdir -p /data/db/
sudo chown `id -u` /data/db/
4. configure mongo env to .bash_profile
MONGO_HOME=~/mongodb-osx-x86_64-2.6.0
source .bash_profile
5. setup mongodb
mongod
6. client
mongo
7. Python setuptool
run at cmd
sudo curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -o - | python
it will throw error, but don’t worry, you can find the installer package setup tools-3.4.4
enter the package
sudo python setup.py install
8. download pymongo
sudo easy_install pymongo-2.7-py2.7-macosx-10.8-intel.egg
9. open command->python try the API
10. mongo:http://blog.nosqlfan.com/html/2989.html
相关推荐
lbyd0 2020-11-17
BigYellow 2020-11-16
sushuanglei 2020-11-12
我心似明月 2020-11-09
zhushenghan 2020-11-09
sunnnyduan 2020-10-16
不要皱眉 2020-10-14
xiaohai 2020-09-29
songxiugongwang 2020-09-22
萌亖 2020-09-17
LuckyLXG 2020-09-08
sdmzhu 2020-09-01
mkhhxxttxs 2020-09-16
xiaohai 2020-09-16
newcome 2020-09-09
jaylong 2020-08-19
大秦铁骑 2020-08-19
thatway 2020-08-19