03 2017 档案
摘要:public static byte[] fileToBytes(String filePath) { byte[] buffer = null; File file = new File(filePath); FileInputStream fis = null; ByteArrayOutputStream bo...
阅读全文
摘要:1:首先保证源文件编码方式为UTF-8 2:读取代码,设置编码方式rs.setEncoding('utf8')
阅读全文
摘要:npm install -g cnpm --registry=https://registry.npm.taobao.org之后可以通过cnpm来安装node模块cnpm install [name]
阅读全文
摘要:C:\Users\用户名\AppData\Roaming\npm\node_modules
阅读全文
摘要:import com.mongodb.MongoClient; import com.mongodb.MongoClientOptions; import com.mongodb.MongoClientURI; import com.mongodb.MongoCredential; import com.mongodb.MongoOptions; import com.mongodb.Serve...
阅读全文
摘要:1:下载MongoDB最新版 2:安装路路径 D:\MongoDB\Server\3.4 3:创建数据库路径(data目录)、日志路径(logs目录)和日志文件(mongo.log文件) 4:创建配置文件mongo.conf,文件内容如下dbpath=D:\MongoDB\Server\3.4\da
阅读全文
摘要:1:下载安装文件 zookeeper-3.4.9.tar.gz 2:解压到以下目录 /usr/local/services/zookeeper/zookeeper-3.4.9 3:进入conf目录,复制zoo_sample.cfg一份zoo.cfg,修改配置文件 4:修改/etc/profile文件
阅读全文
摘要:1机器信息 master192.168.3.10 hadoop/ hadoop slave1192.168.3.11 hadoop/ hadoop slave2192.168.3.12 hadoop/ hadoop (1)创建用户 #sudo adduser hadoop (2)增加root权限 #
阅读全文
摘要:[问题1]make[1]: *** [/usr/local/pcre/Makefile] Error 127–with-pcre=DIR 是设置源码目录,而不是编译安装后的目录,--with-pcre=../pcre-8.39/ [问题2]make[2]: Entering directory `/
阅读全文