到http://pecl.php.net/package/mongo下载相应的mongodb客户端,本例为1.2.1#
wgethttp://pecl.php.net/get/mongo-1.2.1.tgz# tar xvzf mongo-1.2.1.tgz# cd
mongo-1.2.1# php...
分类:
数据库 时间:
2014-05-07 02:31:15
阅读次数:
394
System.Collections 名称空间中的几个接口提供了基本的组合功能:?
IEnumerable 可以迭代集合中的项。?
ICollection(继承于IEnumerable)可以获取集合中项的个数,并能把项复制到一个简单的数组类型中。? IList(继承于IEnumerable
和ICo...
分类:
其他好文 时间:
2014-05-07 02:16:49
阅读次数:
247
20140506今天开始学习伟大的开源代表作:Linux内核。之前的工作流于几个简单命令的应用,因着对Android操作系统的情愫,“忍不住”跟随陈利君老师的步伐,开启OS内核之旅。学习路径之一是直接从代码入手,下面来写一个hello.c内核模块。说明:这个路径/usr/src/linux-head...
分类:
系统相关 时间:
2014-05-07 02:12:54
阅读次数:
995
stddef.h #define offsetof(TYPE, MEMBER)
((size_t) &((TYPE *)0)->MEMBER) kernel.h /** * container_of - cast a
member of a structure out to the containi...
分类:
其他好文 时间:
2014-05-07 02:10:07
阅读次数:
410
一,带函数Pred 1, all(Pred, List) ->
boolean()如果List中的每个元素作为Pred函数的参数执行,结果都返回true,那么all函数返回true,
否则返回false例子:lists:all(fun(E) -> true end,[1,2,3,4]).结果true...
分类:
其他好文 时间:
2014-05-07 01:59:17
阅读次数:
552
1.首先下载JDK通过命令wget可以直接从linux下载 命令wget
URL地址2解压hadoop1.1.2.tar.gz3在grid用户目录下创建免密码通过ls
-a显示隐藏目录.ssh4实现免密码,只需要将公钥复制到另一台机的,并且另取名为authorized_keys
分类:
其他好文 时间:
2014-05-07 01:54:57
阅读次数:
258
This is a summary of some of the most important
questions concerning the Spring Framework, that you may be asked to answer in an
interview or in an in...
分类:
编程语言 时间:
2014-05-07 01:48:25
阅读次数:
601
使用Java创建比较复杂的JSON对象,代码如下: 1 import
java.util.ArrayList; 2 import java.util.HashMap; 3 import java.util.List; 4 5
import net.sf.json.JSONArray; 6 impo....
分类:
编程语言 时间:
2014-05-07 01:41:20
阅读次数:
439
findfind命令是我们常用的查找文件的命令,它是一个非常强大的查找指令,但相对话费的时间会很长,并且非常消耗资源。语法:find【路径】【参数】【表达式】【-exec-ok...】指令{}\;{}代表find找到的文件;\禁止转义;{}\;之间是有空格的;;表示本指令结束-execfind命令对匹配..
分类:
系统相关 时间:
2014-05-06 20:57:13
阅读次数:
501
Linux/Centos安装ntop中文版一:安装环境yuminstalllibpcaplibpcap-devellibpnggdbmgdbm-develgliblibxml2-develpangopango-develgddos2unixlibtool-ltdllibtool-ltdl-develgcclibtoolrrdtool-devel检测下:yuminstall-ylibpcap*freetype*libpng*gdbm*libart_lgpl*libtool*rrdt..
分类:
其他好文 时间:
2014-05-06 20:09:48
阅读次数:
342