| 1 | = MongoDBメモ |
| 2 | |
| 3 | {{{ |
| 4 | # mongo |
| 5 | MongoDB shell version: 2.6.11 |
| 6 | connecting to: test |
| 7 | Server has startup warnings: |
| 8 | 2015-11-08T20:52:52.189+0900 [initandlisten] |
| 9 | 2015-11-08T20:52:52.189+0900 [initandlisten] ** WARNING: Readahead for /var/lib/mongodb is set to 4096KB |
| 10 | 2015-11-08T20:52:52.189+0900 [initandlisten] ** We suggest setting it to 256KB (512 sectors) or less |
| 11 | 2015-11-08T20:52:52.189+0900 [initandlisten] ** http://dochub.mongodb.org/core/readahead |
| 12 | > show dbs |
| 13 | admin (empty) |
| 14 | local 0.078GB |
| 15 | openstack-log 0.078GB |
| 16 | > use openstack-log |
| 17 | switched to db openstack-log |
| 18 | > show collections |
| 19 | log |
| 20 | system.indexes |
| 21 | > db.log.find(); |
| 22 | }}} |