上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 54 下一页
摘要: 安装samba一、RPM安装包1、首先验证您的机器中是否已经安装samba==================================rpm -qa|grep samba,如果出现下面提示则表示samba已经安装完毕samba-client-2.2.8a-13mdksamba-common-2.2.8a-13mdksamba-server-2.2.8a-13mdk2、如果服务存在的话先停止服务再卸载# service smb stoprpm -e samba-server-2.2.8a-13mdkrpm -e samba-common-2.2.8a-13mdkrpm -e samba- 阅读全文
posted @ 2012-07-12 15:08 凌度 阅读(353) 评论(0) 推荐(0) 编辑
摘要: HttpContext//写Stopwatchsw=newStopwatch();sw.Start();for(inti=1;i<=100000;i++){varm=newMan(){age=1,Height=2};HttpContext.Current.Cache[i.ToString()]=m;}sw.Stop();Debug.WriteLine(sw.ElapsedMilliseconds);//读sw.Start();for(intj=1;j<=100000;j++){varm=HttpContext.Current.Cache[j.ToString()];}sw.Stop 阅读全文
posted @ 2012-06-28 17:49 凌度 阅读(812) 评论(0) 推荐(0) 编辑
摘要: foreach是取只读的,在取的时候数据队列不能变(包括修改,删除,添加等)。要避免这个问题,就应该使用for循环。 IList<Person> iList = new List<Person>(); iList.Add( new Person("david",13)); iList.Add(new Person("bob", 11)); iList.Add(new Person("justin",12)); // 用linq重新排序 var textList = (from c in iList orderb 阅读全文
posted @ 2012-05-22 11:35 凌度 阅读(3430) 评论(0) 推荐(0) 编辑
摘要: 来源:http://www.vpsee.com/2009/11/linux-system-performance-monitoring-io/磁盘通常是计算机最慢的子系统,也是最容易出现性能瓶颈的地方,因为磁盘离 CPU 距离最远而且 CPU 访问磁盘要涉及到机械操作,比如转轴、寻轨等。访问硬盘和访问内存之间的速度差别是以数量级来计算的,就像1天和1分钟的差别一样。要监测 IO 性能,有必要了解一下基本原理和 Linux 是如何处理硬盘和内存之间的 IO 的。内存页上一篇Linux 性能监测:Memory提到了内存和硬盘之间的 IO 是以页为单位来进行的,在 Linux 系统上1页的大小为 4 阅读全文
posted @ 2012-05-22 10:00 凌度 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 1. 查看物理CPU的个数#cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l 2. 查看逻辑CPU的个数(线程数)#cat /proc/cpuinfo |grep "processor"|wc -l 3. 查看CPU是几核#cat /pro 阅读全文
posted @ 2012-05-15 15:29 凌度 阅读(5669) 评论(0) 推荐(1) 编辑
摘要: 1、打开查询分析器,输入命令DUMP TRANSACTION 数据库名 WITH NO_LOG2、打开企业管理器--右键你要压缩的数据库--所有任务--收缩数据库--收缩文件--选择日志文件--在收缩方式里选择收缩至: ,这里会给出一个允许收缩到的最小M数,直接输入这个数,确定就可以了。3、在数据库上点右键->属性->选项->故障恢复-模型-选择-简单模型。4、企业管理器--服务器--右键数据库--属性--选项--选择"自动收缩"=====================1:由小的事务引起日志溢出,系统能正常启动。解决办法:扩大数据库日志空间:alter 阅读全文
posted @ 2012-04-17 10:29 凌度 阅读(358) 评论(0) 推荐(0) 编辑
摘要: SQL Server Management Studio建立远程SQL连接连接的时候写: 1.2.3.4,1433记得使用逗号,不是冒号 阅读全文
posted @ 2012-04-09 09:26 凌度 阅读(3822) 评论(0) 推荐(0) 编辑
摘要: readyState Status CodeStatus of the XMLHttpRequest Object(0) UNINITIALIZED 未初始化The object has been created but not initialized. (The open method has not been called.)(XMLHttpRequest)对象已经创建,但尚未初始化(还没有调用open方法)。(1) LOADING 载入The object has been created, but the send method has not been called.(XMLHttp 阅读全文
posted @ 2012-03-30 10:15 凌度 阅读(599) 评论(0) 推荐(0) 编辑
摘要: set datefirst 1select 本年第几周=datename(week,'2012-01-01') ,今天是周几=datename(weekday,'2012-01-01')select 本年第几周=datename(week,getdate()) ,今天是周几=datename(weekday,getdate())值一周的第一天是1星期一2星期二3星期三4星期四5星期五6星期六7(默认值,美国英语)星期日 阅读全文
posted @ 2012-01-06 10:19 凌度 阅读(4283) 评论(1) 推荐(0) 编辑
摘要: 两个文件上传到同一个目录下subversion-1.6.11.tar.gzsubversion-deps-1.6.11.tar.gztar -zxvf subversion-1.6.11.tar.gztar -zxvf subversion-deps-1.6.11.tar.gzcd subversion-1.6.11./configuremakemake checkmake installreboot~svn checkout path --username unamesvn: Cannot negotiate authentication mechanism报错解决安装下面程序yum ins 阅读全文
posted @ 2011-12-01 10:28 凌度 阅读(596) 评论(0) 推荐(0) 编辑
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 54 下一页