尋尋覓覓

共同奉獻

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  36 随笔 :: 1 文章 :: 3 评论 :: 0 引用

公告

08 2011 档案

摘要: 关于windows IIS日志时间与系统时间相差8小时的问题很多做过网站的朋友在分析IIS日志的时候会发现IIS日志的时间与计算机的系统时间不符,比如在中国时区就会相差8小时。具体原因是什么呢?网 上搜索的结果十有八九让人做如下操作解决:在IIS日志属性“常 规”标签下,找到“文件命名和创建使用当地时间”,在其前打勾。实际上,这种方法并不能解决时差问题。真正的原因是因为IIS默认 采用W3C 扩展日志文件格式,而W3C 扩展日志文件定义日志采用GMT时间(即格林尼治标准时间),而中国在GMT +8时区,自然就相差八个小时了。要真正解决,有两个办法:1:活动日志格式更改为 “Microsoft.阅读全文
posted @ 2011-08-29 11:04 ★海戰鷹 阅读(608) | 评论 (0) 编辑

摘要: netstat -s -P tcp 命令可查看所有可用的 TCP 参数[root@localhost ~]# netstat -n | awk '/^tcp.*7787/ {++S[$NF]} END {for(a in S) print a, S[a]}' netstat -n | awk '/^tcp / {++S[$NF]} END {for(a in S) print a, S[a]}'阅读全文
posted @ 2011-08-15 11:16 ★海戰鷹 阅读(21) | 评论 (0) 编辑

摘要: usingSystem;usingSystem.Net;usingSystem.Text;usingSystem.Net.Sockets;usingSystem.Collections.Generic;namespaceCustomLibraries.Threading{publicstaticclassConnectionPool{///<summary>///Queueofavailablesocketconnections.///</summary>privatestaticQueue<CustomSocket>availableSockets=nul阅读全文
posted @ 2011-08-14 16:11 ★海戰鷹 阅读(45) | 评论 (0) 编辑

摘要: 多线程 非安全实例usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;namespaceThreadSample{classProgram{staticvoidMain(string[]args){intnumThreads=20;ShareStatestate=newShareState();Thread[]threads=newThread[numThreads];for(inti=0;i<numThreads;i++){threads[阅读全文
posted @ 2011-08-14 13:03 ★海戰鷹 阅读(34) | 评论 (0) 编辑