mongodb的python helloworld

参考http://blog.csdn.net/lolinzhang/article/details/4353699

http://api.mongodb.org/python/

下载对应版本的客户端

mongodb1.6.1

http://api.mongodb.org/python/1.6/

------------------

Python-2.7.tar.bz2

mongodb-linux-x86_64-1.6.1.tgz

setuptools-0.6c11.tar.gz

使用easy_installpymongo即可自动安装了

--------------

启动mongodb

/usr/local/mongodb/bin/mongod --fork --dbpath /opt/mongo_data/ --logpath /var/log/mongodb.log --logappend --rest
/bin/mongo
db.foo.save({ a : 1 })
db.foo.findOne()

http://api.mongodb.org/python/1.6/tutorial.html说得很细了,不抄了

郁闷了

rsyslog想连mongodb装了一晚上没装上

https://github.com/mongodb/mongo-c-driver/blob/master/src/mongo.h

http://git.adiscon.com/?p=rsyslog.git;a=commitdiff;h=d2b7a55b04b24bff278953240754cc688a32f6b8

http://www.gossamer-threads.com/lists/rsyslog/users/2484

http://kb.monitorware.com/mongodb-backend-rsyslogd-t10655.html

http://blogs.balabit.com/2011/01/11/mongodb-driver-for-syslog-ng/

http://groups.google.com/group/mongodb-user/browse_thread/thread/713af05693b112de?tvc=2&fwc=1&pli=1

https://github.com/vpereira/rsyslogd-mongo/blob/master/README

https://github.com/vpereira/rsyslogd-mongo

java的

参考http://www.cnblogs.com/varlxj/archive/2010/03/12/1684181.html

driver下载

https://github.com/mongodb/mongo-java-driver/downloads

相关推荐