1.首先要将vmware下的linux的网卡设置为桥接上网。
2.设置ip地址 ifconfig eth0 192.168.1.111(和主机在同一个网段之内)
3.测试能否ping通本局域网内的主机,如果可以,再进行第四步,否则检查上面的步骤。
4.ping外网,如果显示网络不可达,则 route 查看是否设置默认路由,如果没有 route add default
gt 1...
分类:
其他好文 时间:
2014-09-01 17:44:13
阅读次数:
190
Json.net 效率 Json.net 的特性 1.net 集合 1.1 无序集合 Dictionary,Hashtable Hashtable ht = new Hashtable();ht.Add("string", "Hashtable");ht.Add("DateTime", System...
分类:
Web程序 时间:
2014-09-01 17:20:03
阅读次数:
425
新建一张表:createtablenac_user.a_bt(deptvarchar2(5)); 注意:新建表时,表里面至少要有一个字段删除整张表:droptablenac_user.a_bt;增加表的一个属性:altertablenac_user.t_p_merchantaddsexchar(1....
分类:
数据库 时间:
2014-09-01 15:23:03
阅读次数:
249
1. 在struts.xml中加入 来打开struts中的DMI功能,调用方法为userAction!add解决使用Struts2.3.16 出现There is no Action mapped for namespace [/user] and action name [user!add] as...
分类:
其他好文 时间:
2014-09-01 15:17:13
阅读次数:
349
ref,函数形参变量的输入有两种方式:传值,传址。而ref则为传址。out,顾名思义,即输出。相当于一个函数可以有多个返回值,这是C#中特有的params,在数组形参前面使用,可以赋多个值。enum,枚举是由程序员定义的类型,与类或结构一样。例如 //static void Add(ref int ...
分类:
其他好文 时间:
2014-09-01 13:58:13
阅读次数:
202
gdb-7.2-64.el6_5.2.x86_64/usr/bin/gcore/usr/bin/gdb/usr/bin/gdb-add-index/usr/bin/gdbtui/usr/bin/gstack/usr/bin/pstackkill -9 pid也会产生以下类似文件asterisk重启会...
分类:
数据库 时间:
2014-09-01 13:52:53
阅读次数:
275
发布Windows Service的方法1、在默认窗口Service1中右键Add Install,自动生成两个类。2. 修改serviceInstaller1的属性: a)ServiceName =”FirstService”; //设置服务名称 b)StartType = Automatic.....
数据量小的时候可以使用子查询做两表关联操作;但数据量大的时候子查询效率太低(因为是单条比对)
比如:
update person1 p1 set p1.p_name=(select p_name from person2 where p1.p_id=p2.p_id) where p1.add_date>to_date('2014-09-01','yyyy-mm-dd')
而使用MERGE ...
分类:
数据库 时间:
2014-09-01 10:46:33
阅读次数:
374
public static object Create(string path){ var provOptions = new Dictionary(); provOptions.Add("CompilerVersion", "v3.5"); CodeDomProvider cod...
分类:
其他好文 时间:
2014-09-01 09:17:52
阅读次数:
320
(一)ref函数形参变量的输入有两种方式:传值,传址。而ref则为传址。eg: 1 static int Add(ref int n) 2 { 3 Console.WriteLine("Add----1:{0}",n); 4 n = n + 10; 5 Console.Wri...
分类:
其他好文 时间:
2014-09-01 00:17:02
阅读次数:
186