sockaddr结构体sockaddr的缺陷:struct sockaddr 是一个通用地址结构,这是为了统一地址结构的表示方法,统一接口函数,使不同的地址结构可以被bind() , connect() 等函数调用;sa_data把目标地址和端口信息混在一起了struct sockaddr { un...
分类:
其他好文 时间:
2014-07-16 19:22:47
阅读次数:
232
之前做JavaEE的工程都是用的Myeclipse,没有用Eclipse 做过比较大的东西。 刚刚试了把别人的项目导入到自己的Eclipse里,吓尿,一百多个error。但大部分都是:HttpServlet cannot be resolved to a type之类的,要不就是JSP不能被r...
分类:
编程语言 时间:
2014-07-15 23:15:30
阅读次数:
332
[root@luozhonghua ~]# /usr/bin/mysqladmin -u root password 'aaaaaa'
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/li...
分类:
数据库 时间:
2014-07-15 12:54:54
阅读次数:
258
1、每过一段时间线上业务就会出现如下错误:kHost‘XXXXX‘isblockedbecauseofmanyconnectionerrors;unblockwith‘mysqladminflush-hosts‘Connectionclosedbyforeignhost2、需要使用mysqladminflush-hosts解锁用户3、查看错误日志4、查看官方文档对max_connect_errors的解释如下当..
分类:
数据库 时间:
2014-07-15 12:10:59
阅读次数:
409
[root@localhostLiveOS]#mountsquashfs.img/mnt/squashfs/mount:/mnt/sdb1/iso/LiveOS/squashfs.imgisnotablockdevice(maybetry`-oloop‘?)[root@localhostLiveOS]#mount-oloop/mnt/squashfs/mount:can‘tfind/mnt/squashfs/in/etc/fstabor/etc/mtab[root@localhostLiveOS]#mount..
分类:
其他好文 时间:
2014-07-15 10:53:58
阅读次数:
870
Cannot find a class or type named "MultiMarker" 是一种常见错误,产生的原因是Library里面有1个以上的ar库。以我的电脑为例,我装了NyAR2、NyAR4psg,所以运行的时候Processing先搜索NyAR2,结果找不到MultiMarker类...
分类:
其他好文 时间:
2014-07-15 00:47:37
阅读次数:
228
import java.util.Scanner;/** * Created by Administrator on 14-5-13. * 计算斐波那契数列 * * Result M(Problem prob) { if () return ; // The problem cannot be so...
分类:
其他好文 时间:
2014-07-15 00:39:15
阅读次数:
408
SQL0752N Connecting to a database is not permitted within a logical unit ofwork when the CONNECT type 1 setting is in use. SQLSTATE=0A001解释:发出 COMMIT ...
分类:
数据库 时间:
2014-07-14 21:33:15
阅读次数:
332
1.当执行此命令的时候ntpdate us.pool.ntp.org 出现一下错误提示name server cannot be used: Temporary failure in name resolution2.解决办法(添加DNS服务器)vi /etc/resolv.conf添加: name...
分类:
其他好文 时间:
2014-07-14 20:12:04
阅读次数:
272
这种情况一般虚拟机的位数(32和64)不匹配造成的。重新下一个和你虚拟机匹配的JDK版本就行了
其中带有X64的都是64位,其他32位...
分类:
编程语言 时间:
2014-07-14 13:38:52
阅读次数:
263