2017年7月12日

nginx压力测试和优化配置

摘要: 115 yum -y install gcc automake autoconf libtool make 116 yum install ctags 117 mkdir -m 644 -p /usr/local/man/man1 118 wget http://blog.zyan.cc/soft/ 阅读全文

posted @ 2017-07-12 17:31 Jt00 阅读(7575) 评论(0) 推荐(1) 编辑

20170527

摘要: 1.DeploymentPortainer is built to run on Docker and is really simple to deploy.Portainer deployment scenarios can be executed on any platform unless s 阅读全文

posted @ 2017-07-12 13:28 Jt00 阅读(332) 评论(0) 推荐(0) 编辑

20170531

摘要: 1.Docker数据卷1027 mkdir /b2b1028 docker run -d --name=tomcat -v /b2b:/test -it centos /bin/bash1029 docker exec -it tomcat /bin/bash1030 ls /b2b1031 doc 阅读全文

posted @ 2017-07-12 13:28 Jt00 阅读(398) 评论(0) 推荐(0) 编辑

20170523

摘要: 1.Building your own shop -Oscar1.1 pip就是一个包管理器1.2离线pip下载Python包这几天搞Windows离线断网环境下安装Python包,配置环境,各种坑!做个记录,供以后查询吧。# 生产环境 windows xp# python 2.7# pip 8.1 阅读全文

posted @ 2017-07-12 13:27 Jt00 阅读(177) 评论(0) 推荐(0) 编辑

20170519

摘要: Python函数式编程指南(四):生成器1.就是把一个函数变成一个生成器,通过yield函数,然后就可以通过for迭代,eg:def fab(max): n, a, b = 0, 0, 1 while n < max: yield b # print b a, b = b, a + b n = n 阅读全文

posted @ 2017-07-12 13:26 Jt00 阅读(239) 评论(0) 推荐(0) 编辑

20170515

摘要: 摘要:re模块包括操作正则表达式的函数,一些工作中都需要用到,现在说明下使用方法。使用说明:一,re模块下的函数:函数 描述compile(pattern) 创建模式对象search(pattern,string) 在字符串中寻找模式match(pattern,string) 在字符串开始处匹配模式 阅读全文

posted @ 2017-07-12 13:25 Jt00 阅读(207) 评论(0) 推荐(0) 编辑

20170511

摘要: 1.添加系统路径>>> import sys ①>>> sys.path sys.path.insert(0,'C:\\Users\\Administrator\\Desktop\\pythonworke\\untitled\\20170511')#Windows是两个\\;from humansi 阅读全文

posted @ 2017-07-12 13:24 Jt00 阅读(182) 评论(0) 推荐(0) 编辑

20170509

摘要: 1.过滤列表li=["a","mpilgrim","foo","b","c","d","d"][elem for elem in li if len(elem)>1]['mpilgrim', 'foo'][elem for elem from li if elem !="b"];File "<inp 阅读全文

posted @ 2017-07-12 13:23 Jt00 阅读(132) 评论(0) 推荐(0) 编辑

20170505

摘要: RAID级别 raid0 为带区阵列;raid1 为镜像阵列raid0+1 为四块磁盘实现的荣誉磁盘阵列;raid5 至少三块,容量为(n-1)/n 广泛用于各种服务器:文件,数据库,web,邮件服务器 1.git回退到某个历史版本1. 使用Git log命令查看所有的历史版本,获取某个历史版本的i 阅读全文

posted @ 2017-07-12 13:22 Jt00 阅读(162) 评论(0) 推荐(0) 编辑

导航