首先强调一点,更改eth0与eth1配置时一定要注释掉其相应的MAC地址Linux双网卡绑定实现就是使用两块网卡虚拟成为一块网卡,这个聚合起来的设备看起来是一个单独的以太网接口设备,通俗点讲就是两 块网卡具有相同的IP地址而并行链接聚合成一个逻辑链路工作。1、修改网卡配置a、切换目录cd /etc....
分类:
其他好文 时间:
2014-06-28 18:47:41
阅读次数:
268
在阎宏博士的《JAVA与模式》一书中开头是这样描述访问者(Visitor)模式的: 访问者模式是对象的行为模式。访问者模式的目的是封装一些施加于某种数据结构元素之上的操作。一旦这些操作需要修改的话,接受这个操作的数据结构则可以保持不变。 1 interface Service { 2 3 ...
分类:
编程语言 时间:
2014-06-21 08:55:39
阅读次数:
300
在View的UITextField中经常需要输入完文字后隐藏软键盘,要实现着一点要让View的Controller实现UITextFieldDelegate代理,然后编写相应的代码。#import @interface TestVeiwController : UIViewController {I...
分类:
移动开发 时间:
2014-06-21 08:25:09
阅读次数:
253
如果想要在UITableView中添加数据,需要一个数据源(dateSource)来显示数据1.首先添加数据源@interface PPViewController () 2.遵守协议,实现数据源#pragma mark - 数据源//一共有多少组数据- (NSInteger)numberOfSec...
分类:
其他好文 时间:
2014-06-21 07:04:54
阅读次数:
195
no sh (no shutdown : start the interface)router rspf 1network x.x.x.x x.x.x.x area 0int (interface)show ip route (to see routing table entries)RIPRtr(...
分类:
其他好文 时间:
2014-06-21 00:03:48
阅读次数:
319
sh run (show running-config)enable disable login logout exit endenable passwordprivilege level(global)privilege level(line)show interface serial 1/1di...
分类:
其他好文 时间:
2014-06-20 23:51:05
阅读次数:
437
1、 ifconfig 可以使用ifconfig命令来配置并查看网络接口的配置情况。 例如: (1) 配置eth0的IP地址, 同时激活该设备。 #ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up (2) 配置eth0别名设备eth0:1的...
分类:
系统相关 时间:
2014-06-20 22:23:24
阅读次数:
362
JNDI是 Java 命名与文件夹接口(Java Naming and Directory Interface),在J2EE规范中是重要的规范之中的一个,不少专家觉得,没有透彻理解JNDI的意义和作用,就没有真正掌握J2EE特别是EJB的知识。那么,JNDI究竟起什么作用?要了解JNDI的作用,我们...
分类:
其他好文 时间:
2014-06-20 21:03:49
阅读次数:
132
网卡配置静态IP地址编辑文件/etc/network/interfaces:sudo vi /etc/network/interfaces并用下面的行来替换有关eth0的行:# The primary network interfaceauto eth0iface eth0 inet statica...
分类:
其他好文 时间:
2014-06-20 20:46:18
阅读次数:
145
Using self-defined Parcelable objects during an Android AIDL RPC / IPC callIn my previous post “Using the Android Interface Definition Language (AIDL)...
分类:
移动开发 时间:
2014-06-20 16:30:16
阅读次数:
537