02 2020 档案

摘要:性能计数器参数: typeperf -qx > c:\typeperf.txt 计数器性能参数: \PhysicalDisk(_Total)\Avg. Disk Queue Length平均磁盘队列长度( Avg. Disk Queue Length) 在采样的时间间隔中,选中的物理磁盘读请求和写请 阅读全文
posted @ 2020-02-19 10:57 冬日的温暖 阅读(631) 评论(0) 推荐(0)
摘要:触发器的表达式如下:{Template Windows Event Log:eventlog[Security,,"Success Audit",,^4624$,,skip].nodata(60)}=0 & {Template Windows Event Log:eventlog[Security, 阅读全文
posted @ 2020-02-14 17:39 冬日的温暖 阅读(307) 评论(0) 推荐(0)
摘要:php 7 的yum源rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmrpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-releas 阅读全文
posted @ 2020-02-12 23:02 冬日的温暖 阅读(99) 评论(0) 推荐(0)
摘要:Nginx: 1.安装nginx yum源 rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 2.yum install nginx -y 3.mv 阅读全文
posted @ 2020-02-11 23:40 冬日的温暖 阅读(76) 评论(0) 推荐(0)
摘要:#客户端编写import threadingimport loggingimport socketFORMAT = "%(asctime)s %(thread)d %(message)s"logging.basicConfig(level=logging.INFO,format=FORMAT)soc 阅读全文
posted @ 2020-02-03 21:02 冬日的温暖 阅读(162) 评论(0) 推荐(0)
摘要:服务器端编程步骤1.创建socket对象2.绑定IP地址和端口 bind()方法3.开始监听,将在指定的IP的端口上监听 listen()方法4.获取用于传送数据的socker对象 socket.accept() 接收数据 recv(bufsize) 发送数据 sedn(bytes) import 阅读全文
posted @ 2020-02-03 00:07 冬日的温暖 阅读(209) 评论(0) 推荐(0)
摘要:import multiprocessingimport datetimedef calc(i): sum =0 for _ in range(1000000): sum +=1if __name__ == "__main__": start =datetime.datetime.now() lst 阅读全文
posted @ 2020-02-02 17:08 冬日的温暖 阅读(170) 评论(0) 推荐(0)
摘要:import threadingimport timeimport logginglogging.basicConfig(level=logging.INFO)cups = []lock = threading.Lock() #锁def factory(): logging.info("杯子的数量: 阅读全文
posted @ 2020-02-02 13:42 冬日的温暖 阅读(331) 评论(0) 推荐(0)
摘要:import threadingimport timeimport loggingFORMAT = "%(asctime)s %(thread)d %(message)s"FORMATLOG1 ="%(asctime)s %(thread)d %(threadName)s %(message)s"l 阅读全文
posted @ 2020-02-02 11:27 冬日的温暖 阅读(182) 评论(0) 推荐(0)