门面模式也叫做外观模式,是一种比较常用的封装模式,其定义如下: Provide a unifield interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes ...
分类:
其他好文 时间:
2016-05-14 15:25:42
阅读次数:
191
局域网一套物理网络里有两个 ip 段,单网卡设置多 ip 可实现同时访问两个网段。$ cat /etc/network/interfaces# interfaces(5) file used by ifup(8) and ifdown(8)auto eth0iface eth0 inet stati... ...
分类:
系统相关 时间:
2016-05-13 11:07:10
阅读次数:
219
许多windows非常熟悉ipconfig命令行工具,它被用来获取网络接口配置信息并对此进行修改。Linux系统拥有一个类似的工具,也就是ifconfig(interfaces config)。通常需要以root身份登录或使用sudo以便在Linux机器上使用ifconfig工具。依赖于ifconfig命令中使用一些选项属性,ifconfig工具不仅可以被用来简单地获取网络接口配置信息,还可以修改...
分类:
系统相关 时间:
2016-05-06 15:28:46
阅读次数:
358
1.虚拟机: 选择桥接2.设置静态IP sudo vi /etc/network/interfaces 修改为: # The loopback network interface auto lo iface lo inet loopback # The primary network interfa ...
分类:
系统相关 时间:
2016-05-03 23:37:17
阅读次数:
234
Icinga is an open source network monitoring application that provides us with Icinga Web 1 and Icinga Web 2 interfaces to fully manage and monitor the hosts and services through its dashboard. Icinga...
分类:
Web程序 时间:
2016-05-03 18:28:14
阅读次数:
606
ubuntu 静态ip设置 检查网络ifconfig (不是ipconfig)必须有2个地址一个回送地址:127.0.0.1一个实际地址:192.168.3.58 sudo vim /etc/network/interfaces 添加2个地址. auto loiface lo inet loopba ...
动态代理 1. 只学一个方法: Object proxyObject = Proxy.newProxyInstance(ClassLoader classLoader, Class[] interfaces, InvocationHandler h); 方法的作用:在运行时,动态创建一组指定的接口的... ...
分类:
其他好文 时间:
2016-05-02 21:08:11
阅读次数:
217
jdk:1.7.0_75
package java.util;
/**
* Doubly-linked list implementation of the {@code List} and {@code Deque}
* interfaces. Implements all optional list operations, and permits all
* elements (i...
分类:
其他好文 时间:
2016-04-29 16:40:05
阅读次数:
212
方法一、软件查找:如ipscan或ipscanner 这里用的是ipscan 绿色标志便是正在使用中的,可以找的树莓派。 二、查找树莓派的IP地址。 运行DOS窗口,输入arp –a。树莓派是其中的一个动态地址。 、 三、设置静态ip地址、 修改文件: /etc/network/interfaces ...
分类:
其他好文 时间:
2016-04-22 23:55:00
阅读次数:
1595
1. 找到文件并作如下修改: sudo vim /etc/network/interfaces 修改如下部分: auto eth0iface eth0 inet staticaddress 192.168.0.117gateway 192.168.0.1 #这个地址你要确认下 网关是不是这个地址ne ...
分类:
系统相关 时间:
2016-04-19 14:00:58
阅读次数:
172