04 2017 档案

ansible copy file
摘要:ansible xxxip -m copy -a 'src=/localdir/file dest=/sss/xxx/basic_search/bin/' 阅读全文

posted @ 2017-04-20 19:02 iokde.com 阅读(162) 评论(0) 推荐(0)

多个sshkey 指定key来clone仓库
摘要:Something like this should work (suggested by orip): if you prefer subshells, you could try the following (though it is more fragile): Git will invoke 阅读全文

posted @ 2017-04-17 14:43 iokde.com 阅读(343) 评论(0) 推荐(0)

elastic search 日期为string类型导致视图无法展示时间的解决办法
摘要:尝试将结构化的json数据发送到es(elastic search)上,然后创建视图,这样就能以小时维度查看数据,直接使用post发送到es后,创建索引,结果提示 没有date类型的字段(field)。经过一番搜索和请教同事同学,最后尝试如下方法解决: 删除原有的索引,然后在发送数据到ES前的时候先 阅读全文

posted @ 2017-04-14 17:45 iokde.com 阅读(1661) 评论(0) 推荐(0)

时间转化 为特定小时增加1小时(使用时间戳)
摘要:date -d "20140410 +10hour" +%sa=`date -d "20140410 +10hour" +%s`b=`expr $a +3600`echo $ab=`expr $a + 3600 `echo $bdate -d@1397098800 "+%Y-%m-%d %H-%M" 阅读全文

posted @ 2017-04-13 12:46 iokde.com

ubuntu 安装php 报错解决
摘要:安装php时候遇到的问题: dpkg: 处理软件包 php7.1-opcache (--configure)时出错: 依赖关系问题 - 仍未被配置dpkg: 依赖关系问题使得 php7.1-readline 的配置工作不能继续: php7.1-readline 依赖于 php7.1-common;然 阅读全文

posted @ 2017-04-06 14:00 iokde.com 阅读(604) 评论(0) 推荐(0)

ruby hash 默认值的问题
摘要:参考:http://stackoverflow.com/questions/16159370/ruby-hash-default-value-behavior 使用ruby hash 默认值为空数组,向key 对应的value 追加值然后去get一个不存在的key 时候发现value为 一个非空的a 阅读全文

posted @ 2017-04-01 16:37 iokde.com 阅读(350) 评论(0) 推荐(0)

导航