摘要: 原文地址: 阅读全文
posted @ 2017-02-28 20:12 jay- 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 原文地址: http://blog.csdn.net/isaisai/article/details/52198501 阅读全文
posted @ 2017-02-28 19:41 jay- 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1.设置default时,则创建文档的时候会把默认值写进去 2.如果已经存在该文档,但没有存储该字段,则查询时,会将该字段默认值查询出来, 但是有一个问题,如果类型是Object,default是{},则有时候默认值设置不上. 阅读全文
posted @ 2017-02-28 18:54 jay- 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 链接: http://blog.csdn.net/jiadabin/article/details/51919216 阅读全文
posted @ 2017-02-28 17:27 jay- 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1. ps -aux | grep mongo 确定mongo的启动的命令以及端口号 502 34786 ttys000 2:53.29 /usr/local/opt/mongodb/bin/mongod --config /usr/local/etc/mongod.conf 2.pkill mon 阅读全文
posted @ 2017-02-28 16:54 jay- 阅读(371) 评论(0) 推荐(0) 编辑