不同网关的两个网卡配置在机房需求配置两个网卡,一个网络可以上外网(eth0),一个只固定几个ip段可以访问(eth2)。在eth0上配置了vlan trunk模式, vlan id为1004。eth2为普通的接入模式。eth0和eth2的网络是隔离的。手动添加虚拟vlanvconfig add eth0 1004
ifconfig eth0.1004 10.128.4.1 netmask 255.2...
分类:
其他好文 时间:
2015-04-13 23:03:26
阅读次数:
209
To search a key in a binary search tree, we start from the root and move all the way down, choosing branches according to the comparison results of th...
分类:
其他好文 时间:
2015-04-13 18:33:44
阅读次数:
110
如果想编写一个监控Zookeeper的Java程序,可以通过两种方式 :
(1)通过TelnetClient发送命令 ,命令的详解参考:http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_zkCommands
(2)通过JMX,说明请参考:http://zookeeper.apache.org/doc/trunk/zooke...
分类:
Web程序 时间:
2015-04-10 18:06:17
阅读次数:
251
最近想研究一下Openwrt,于是开始搭建openwrt环境,虽然现在没有现成的板子,但是可以先编译起来。看了别人的帖子,都推荐使用svn从官网下载源码,svn co svn://svn.openwrt.org/openwrt/trunk/但是实际测试发现它的速度太慢了,为了得到官方的源码,从git...
分类:
其他好文 时间:
2015-04-07 23:20:23
阅读次数:
471
2.1下载地址1、ApacheHadoop(100%永久开源)下载地址:-http://hadoop.apache.org/releases.html-SVN:http://svn.apache.org/repos/asf/hadoop/common/branches/2、CDH(ClouderaDistributedHadoop,100%永久开源)下载地址:-http://archive.cloudera.com/cdh4/cdh/4/(是ta..
分类:
其他好文 时间:
2015-04-07 19:58:25
阅读次数:
363
把svn中的分支(branch)合并到主分支(trunk)
branch 和 trunk的代码同步至最新
选中trunk项目需要合并的代码(可以项目根目录、也可以是子目录或文件)
选择合并操作 ( team-->合并)
选择合并一个分支(reintegrate a branch)
填写需要合并的分支目录(reintegrate a branch)...
分类:
其他好文 时间:
2015-04-07 17:45:58
阅读次数:
107
当使用git进行操作:git checkout -b local-name origin/remote-name出现错误:fatal: git checkout: updating paths is incompatible with switching branches.Did you inten...
分类:
其他好文 时间:
2015-04-07 15:18:33
阅读次数:
147
缺省VLAN这个概念
Access端口只属于1个VLAN,所以它的缺省VLAN就是它所在的VLAN,不用设置;
Hybrid端口和Trunk端口属于多个VLAN,所以需要设置缺省VLAN ID。缺省情况下,Hybrid端口和Trunk端口的缺省VLAN为VLAN 1
如果设置了端口的缺省VLAN ID,当端口接收到不带VLAN Tag的报文后,则将报文转发到属于缺省VLAN的端口;当端口发送带...
分类:
数据库 时间:
2015-04-06 23:21:09
阅读次数:
297
编译报错: make[3]:?Entering?directory?`/home/hevake_lcj/Workspace/OpenWRT/trunk/package/network/config/netifd‘
mkdir?-p?/home/hevake_lcj/Workspace/OpenWRT/trunk/dl
echo?"Checking?out?files...
分类:
其他好文 时间:
2015-04-02 09:15:46
阅读次数:
215