摘要: 目标:system1透过ssh连接到system2电脑生成 private key (id_rsa) & public key (id_rsa.pub)id_rsa是system1要用的,例如windows端id_rsa.pub是你要连过去system2要用的, 此服务器必须安装openssh-se... 阅读全文
posted @ 2015-01-27 23:08 Henry JAO 阅读(246) 评论(0) 推荐(0) 编辑
摘要: File System为了让Linux运行起来,通常需要2个file systemboot file system (bootfs) 包含bootloader和kernel, 用户永远无法改变root file system (rootfs) 包含典型的Unix-like操作系统文件夹结构/dev,... 阅读全文
posted @ 2015-01-26 17:14 Henry JAO 阅读(249) 评论(0) 推荐(0) 编辑
摘要: tty: teletype, teletypewriterpseudo-tty 伪终端-t assigns a pseudo-tty or terminal inside our new container-imake an interactive connection--rm在Docker设计中,... 阅读全文
posted @ 2015-01-26 16:47 Henry JAO 阅读(2138) 评论(0) 推荐(0) 编辑
摘要: 使用最小安装的centos 7时有很多命令工具尚未被安装,例如 ifconfig, 那怎知道此命令在那个package里面呢?# yum whatprovides ifconfigLoaded plugins: fastestmirrorLoading mirror speeds from cach... 阅读全文
posted @ 2015-01-24 21:59 Henry JAO 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 检查firewall是否运行# systemctl status firewalldfirewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.... 阅读全文
posted @ 2015-01-23 13:01 Henry JAO 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 对齐sbt引用时是件难事Tabularize来帮忙, 最难的其实是正则匹配vim 命令如下/comvj4:Tab /%\{1,2\}匹配%号1到2个,%{1,2} 注意花括号要用\作为escaping字符 阅读全文
posted @ 2015-01-02 00:34 Henry JAO 阅读(734) 评论(0) 推荐(0) 编辑
摘要: :find 文件名默认只能找该目录下的文件, 对于深层目录结构下那就发挥不了作用:find .看下当前文件夹结构:set path+=你要搜索的文件夹/**** 意思是文件夹下的所有子文件夹:find 文件字首使用vim原生的文件管理器,在shell下输入vim . 阅读全文
posted @ 2014-12-24 11:16 Henry JAO 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 创建一个档案,连文件夹(vim, practic, folder1)都不存在:edit ~/Desktop/vim/practic/folder1/file1.txt:write结果是E212: Can't open file for writing原因是vim/practic/folder1文件夹... 阅读全文
posted @ 2014-12-24 11:02 Henry JAO 阅读(782) 评论(0) 推荐(1) 编辑
摘要: 在ES裡, 更新documents到index不是一件簡單的事情, 我們得在這裡留個心眼.眾所皆知RESTful風格使用HTTP的動詞來進行所謂的Update, ES也是如此.要注意到ES的更新有兩種方式整個docment更新(取代,覆蓋)根據某個field更新(count += 3, append... 阅读全文
posted @ 2014-06-27 10:22 Henry JAO 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Elasticsearch本身是沒有安全性的功能, 我們得透過plugin來安裝, 這次我選擇了elasticsearch-jetty,此外也有人用nginx反向代理來進行控制.首先我們得先注意到Elasticsearch與Jetty Plugin的版本號對應, 在這裡可以查看, 如果版本號沒對應上... 阅读全文
posted @ 2014-06-24 16:12 Henry JAO 阅读(529) 评论(0) 推荐(0) 编辑