一、Key Key命令速查: 增量迭代 SCAN cursor [MATCH pattern] [COUNT count], cursor 每次都从0开始,结果分为两部分,第一部分是下一次游标,第二部分是数据。 最后的游标结束也是0. 二、String String命令速查: 将字符串值value关 ...
分类:
其他好文 时间:
2017-10-20 18:46:27
阅读次数:
145
cat filebeat.yml output.kafka: enabled: true hosts: ["192.168.111.107:9092","192.168.111.108:9092","192.168.111.109:9092"] topic: '%{[type]}' filebeat... ...
分类:
其他好文 时间:
2017-10-19 19:55:46
阅读次数:
323
方法一:正则法 function getQueryString(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.location.search.substr(1).match(re ...
分类:
Web程序 时间:
2017-10-18 19:57:10
阅读次数:
193
自己上网查了好多种方法,最后还是选了这种不收费,还挺好用的方法 为了用户有一个好的体验我将word、excel、ppt转Pdf,Pdf转Swf写在服务上,因为我当时做的时候Pdf转Swf会执行pdf2swf.exe弹出黑框,对用户体验不好,还有就是ppt转swf时会有一个弹出框,提示正在发布,我没搞 ...
分类:
其他好文 时间:
2017-10-18 11:14:42
阅读次数:
254
原题链接在这里:https://leetcode.com/problems/repeated-string-match/description/ 题目: Given two strings A and B, find the minimum number of times A has to be r ...
分类:
其他好文 时间:
2017-10-18 10:13:40
阅读次数:
189
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette ...
分类:
其他好文 时间:
2017-10-17 18:48:07
阅读次数:
159
案例:当nginx的并发达到3000,并持续了一段时间时,通过自动化创建一台虚拟机,部署应用最后添加到集群提供服务: zabbix监控(nginx并发量) 》action 》创建了一台主机/docker容器 》部署服务 》部署应用代码 》测试状态 》加入到集群 》加入监控 》通知 简单实现上面中的某 ...
分类:
其他好文 时间:
2017-10-17 15:09:36
阅读次数:
189
Description This error occurs when the $controller() service is called with a string that does not match any of the registered controllers. The contro ...
分类:
其他好文 时间:
2017-10-17 15:06:49
阅读次数:
524
点击的时候默认打开app,如果2秒钟没有打开,就跳转到下载地址document.getElementById('openApp').onclick = function(e){ if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) { wind... ...
分类:
移动开发 时间:
2017-10-17 12:32:54
阅读次数:
184
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette ...
分类:
其他好文 时间:
2017-10-16 23:28:09
阅读次数:
200