MongoDBメモ
# mongo
MongoDB shell version: 2.6.11
connecting to: test
Server has startup warnings:
2015-11-08T20:52:52.189+0900 [initandlisten]
2015-11-08T20:52:52.189+0900 [initandlisten] ** WARNING: Readahead for /var/lib/mongodb is set to 4096KB
2015-11-08T20:52:52.189+0900 [initandlisten] ** We suggest setting it to 256KB (512 sectors) or less
2015-11-08T20:52:52.189+0900 [initandlisten] ** http://dochub.mongodb.org/core/readahead
> show dbs
admin (empty)
local 0.078GB
openstack-log 0.078GB
> use openstack-log
switched to db openstack-log
> show collections
log
system.indexes
> db.log.find();