步骤 一、冷热分离集群配置 比如三个机器共六个node的es集群。 每个机器上各挂载一个ssd 和 一个sata。每个机器需要启动两个es进程、每个进程对应不同类型的磁盘。 关键配置: node.max_local_storage_nodes: 2 #允许每个机器启动两个es进程 path.data ...
分类:
其他好文 时间:
2017-08-05 23:31:40
阅读次数:
3855
报错内容如上,在格式化namenode时报错,系统为centos7 原因:关闭防火墙时用的service iptables stop 解决方法:使用命令 systemctl stop firewalld 来关闭防火墙 再次格式化namenode,成功。 ...
分类:
编程语言 时间:
2017-08-05 21:09:55
阅读次数:
612
首先,本地使用OK! 然后,新配置的LNMP环境,验证码一直显示不出来,看了Yii2的验证码存在session里,怀疑是session有问题。 在测试其他页面的时候,发现:session_start(): Failed to initialize storage module: files (pat ...
分类:
其他好文 时间:
2017-08-05 21:08:55
阅读次数:
156
0x01 TLS (Thread Local Storage) 为线程单独提供的私有空间 0x02 gcc中的隐式TLS使用方法 隐式TLS __thread int number; 显式TLS pthread_key_create pthread_getspecific pthread_setsp ...
分类:
编程语言 时间:
2017-08-05 14:06:30
阅读次数:
149
先上chrome driver和chrome版本对照表 笔者使用的是chrome58,对应的下载版本是v2.30-2.31,下载地址:http://chromedriver.storage.googleapis.com/index.html 下载之后设置到环境变量中即可正常使用。ps:win32位的 ...
分类:
其他好文 时间:
2017-08-04 16:47:27
阅读次数:
301
mongoDB 3.2之后默认是使用wireTiger引擎 在启动时更改存储引擎: mongod --storageEngine mmapv1 --dbpath d:\data\db 这样就可以解决mongvue不能查看文档的问题啦! 项目流程(步骤): 前去准备(安装scrapy pymongo ...
分类:
编程语言 时间:
2017-08-04 00:29:47
阅读次数:
234
Filesystems that manage the storage across a network of machines are called distributed filesystems. Since they are network based, all the complicatio ...
分类:
其他好文 时间:
2017-08-03 22:02:47
阅读次数:
196
下载android源码: 1.安装git和curl: sudo apt-get install git-core sudo apt-get install git-core curl 2.下载repo mkdir ~/bin PATH=~/bin:$PATH curl https://storage ...
分类:
移动开发 时间:
2017-08-03 17:37:36
阅读次数:
168
//干货 利用localStorage事件来跨标签页共享sessionStorage //因为cookie保存字节数量有限,很多童鞋考虑用html5 storage来保存临时数据,Sessionstorage就比较适合来保存临时数据了。 //但有个问题呵:Sessionstorage:不支持跨标签页... ...
分类:
其他好文 时间:
2017-08-03 16:52:06
阅读次数:
217
关于 token 的存储问题 关于 token 的存储问题 JWT: csrf 攻击无法获取第三方的 cookie,而是直接使用 cookie进行查询的时候会自动携带 cookie。 xss攻击通过代码注入可以获取 cookie。需要设置转义。 方式一、客户端使用 cookie直接认证,需要设置 c ...
分类:
其他好文 时间:
2017-08-03 01:07:04
阅读次数:
2050