上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: A想通过免密码登录B 1. 生成密钥 在A上执行: ssh-keygen -t rsa -P '' 2. 将A的公钥传到B上 scp ~/.ssh/id_rsa.pub xxx@ip:~/ 3. 在B中执行 cd ~ cat id_rsa.pub >> .ssh/authorized_keys ch 阅读全文
posted @ 2017-02-27 11:25 idea偶买噶 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1.实时改主机名(重启后失效) $ hostname newname 2.一劳永逸 $ vi /etc/sysconfig/network 阅读全文
posted @ 2017-02-27 10:29 idea偶买噶 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 一、原子更新基本类型 AtomicInteger AtomicBoolean AtomicLong 二、原子更新数组 AtomicIntegerArray AtomicLongArray AtomicReferenceArray 三、原子更新引用类型 AtomicReference AtomicRe 阅读全文
posted @ 2017-02-25 19:49 idea偶买噶 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 创建一个叫做“feature_x”的分支,并切换过去:git checkout -b feature_x,(git checkout -b feature_x origin/master 在远程origin/master的分支基础上,创建feature_x分支) 切换回主分支:git checkou 阅读全文
posted @ 2017-02-10 12:04 idea偶买噶 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 适配器模式(Adapter Pattern) 1. why 使得原本由于接口不兼容而不能一起工作的那些类可以一起工作。 2. when 1、适配类的接口以匹配客户端期待的接口 2、某个类实现了我们所需要的服务,但它的方法名称却与客户端的期望不符 3. how 1、类的适配器:当客户端通过接口表达其需 阅读全文
posted @ 2017-01-24 10:33 idea偶买噶 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 工厂模式 1. why 主要解决接口选择的问题。 2. when 我们明确地计划不同条件下创建不同实例时。 3. how 在工厂方法中,根据特定字符串返回不同的实例。 抽象工厂模式 1. why 当有多个产品等级结构时,工厂模式不适用,需要使用抽象工厂模式。 2. when 系统的产品有多于一个的产 阅读全文
posted @ 2017-01-23 15:41 idea偶买噶 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 桥接模式 why: 把抽象化与实现化解耦,使得二者可以独立变化。 when: 实现系统可能有多个角度分类,每一种角度都可能变化。 how: 将抽象类的一些操作,抽取到一个接口中,并在抽象类中持有这个接口的对象。 策略模式 why: 定义一系列的算法,把它们一个个封装起来, 并且使它们可相互替换。在有 阅读全文
posted @ 2017-01-23 14:34 idea偶买噶 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 适配器模式(Adapter) why: 使得原本由于接口不兼容而不能一起工作的那些类可以一起工作。 when (使用场景) : 1. 适配类的接口以匹配客户端期待的接口 2. 某个类实现了我们所需要的服务,但它的方法名称却与客户端的期望不符 how (使用方式) : 1. 类的适配器:当客户端通过接 阅读全文
posted @ 2017-01-22 11:20 idea偶买噶 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1. Bootstrap and ServerBootstrap 主要作用是配置整个Netty程序,串联起各个组件。 2. EventLoopGroup and EventLoop EventLoop的目的是为Channel处理IO操作,一个EventLoop可以为多个Channel服务。 Even 阅读全文
posted @ 2017-01-17 20:17 idea偶买噶 阅读(325) 评论(0) 推荐(0) 编辑
摘要: Installing a Storm release locally If you want to be able to submit topologies to a remote cluster from your machine, you should install a Storm relea 阅读全文
posted @ 2017-01-17 10:45 idea偶买噶 阅读(119) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页