MongoDB在Windows中默认的数据库目录是c:\data。如果在没有该目录的情况下,直接运行mongod.exe,就会报如下错误:在某些情况下,我们并不想把mongoDB的数据库放在c盘,这时候有两种方法可以切换数据库目录。1.
命令方式首先创建数据库目录,例如d:\data。然后运行命令m...
分类:
数据库 时间:
2014-05-27 02:06:05
阅读次数:
1010
Install MongoDB on Red Hat Enterprise, CentOS,
Fedora, or Amazon Linux?OverviewUse this tutorial to install MongoDB on Red Hat
Enterprise Linux, CentO...
分类:
数据库 时间:
2014-05-27 01:58:54
阅读次数:
499
(转自:http://www.cnblogs.com/zhuque/archive/2013/03/29/2988577.html)
mongostat是mongdb自带的状态检测工具,在命令行下使用。它会间隔固定时间获取mongodb的当前运行状态,并输出。如果你发现数据库突然变慢或者有其他问题....
分类:
数据库 时间:
2014-05-24 05:31:56
阅读次数:
318
(转自:http://www.cnblogs.com/zhuque/archive/2013/03/29/2988639.html)mongotop也是mongodb-win32-x86_64-2.2.1\bin下的一个内置工具,mongotop提供了一个方法,用来跟踪一个MongoDB的实例,.....
分类:
数据库 时间:
2014-05-24 05:19:34
阅读次数:
362
开启 Profiling
功能,对慢查询进行优化:mongodb可以通过profile来监控数据,进行优化。查看当前是否开启profile功能用命令db.getProfilingLevel()
返回level等级,值为0|1|2,分别代表意思:0代表关闭,1代表记录慢命令,2代表全部db.setPr...
分类:
数据库 时间:
2014-05-24 01:26:42
阅读次数:
352
LESS 是一个编写 CSS 的很好的方式
,使您可以使用变量,嵌套规则,混入以及其它许多有用的功能,它可以帮助您更好地组织你的 CSS 代码。最近我一直在研究 Node.js ,并想用
less-middleware 中间件,这样我可以很容易的在我的应用程序中使用 LESS 了。配置好以后,LES...
分类:
Web程序 时间:
2014-05-24 00:29:18
阅读次数:
389
#includeusing namespace std;class node{public:
node():value(0),next(NULL){} ~node(){} int value; node* next;};///be careful
this ;node* cr...
分类:
其他好文 时间:
2014-05-23 23:06:05
阅读次数:
258
#includeusing namespace std;class node{public:
node():value(0),next(NULL){} ~node(){} int value; node* next;};///be careful
this ;node* cr...
分类:
其他好文 时间:
2014-05-23 23:03:01
阅读次数:
301
题目:Given a binary tree, determine if it is a valid
binary search tree (BST).Assume a BST is defined as follows:The left subtree of
a node contains onl...
分类:
其他好文 时间:
2014-05-23 12:20:50
阅读次数:
407