摘要: varnish简单应用 web cache基础讲解 Varnish:http://www.varnish-cache.org/ 官网 cache: 程序的运行具有局部性特征: 时间局部特性 空间局部特性 衡量缓存服务器的命中率 数据具有热点:2 8法则 缓存命中率:hit/(hit+miss) 文档 阅读全文
posted @ 2017-04-11 10:43 ShinyBoy1 阅读(184) 评论(0) 推荐(0) 编辑
摘要: CentOS 7.1 安装 ~]# yum install zabbix-2.4.6-1.el7.x86_64.rpm zabbix-server-2.4.6-1.el7.x86_64.rpm zabbix-server-mysql-2.4.6-1.el7.x86_64.rpm zabbix-age 阅读全文
posted @ 2017-03-28 15:59 ShinyBoy1 阅读(345) 评论(0) 推荐(0) 编辑
摘要: playbook是由一个或多个“play”组成的列表。play的主要功能在于将事先归并为一组的主机装扮成事先通过ansible中的task定义好的角色。从根本上来讲,所谓task无非是调用ansible的一个module。将多个play组织在一个playbook中,即可以让它们联同起来按事先编排的机 阅读全文
posted @ 2017-03-13 18:41 ShinyBoy1 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 一、简介 Ansible is a radically simple configuration-management, application deployment, task-execution, and multinode orchestration engine. Design Princi 阅读全文
posted @ 2017-03-12 10:06 ShinyBoy1 阅读(293) 评论(0) 推荐(0) 编辑
摘要: ngx_http_log_module rewrite regex replacement[flag]; 把用户请求的uri基于regex做检查,匹配到时将替换为replacement指定的子字符串 在同一个location中存在的都哦个rewrite规则会自上而下逐个被检查 ngx_http_fa 阅读全文
posted @ 2017-03-06 20:54 ShinyBoy1 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 缓存相关的选项(缓存要先定义,后调用): (3) proxy_cache_path path [levels=levels] [use_temp_path=on|off] keys_zone=name:size [inactive=time] [max_size=size] 定义缓存;可用上下文为h 阅读全文
posted @ 2017-03-03 16:26 ShinyBoy1 阅读(156) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-02-28 11:00 ShinyBoy1 阅读(7) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-02-27 09:47 ShinyBoy1 阅读(8) 评论(0) 推荐(0) 编辑
摘要: ngx_http_ssl_module模块配置 一、配置讲解:ssl_certificate file; 证书文件路径; ssl_certificate_key file; 证书对应的私钥文件; ssl_ciphers ciphers; 指明由nginx使用的加密算法,可以是OpenSSL库中所支持 阅读全文
posted @ 2017-02-26 20:24 ShinyBoy1 阅读(378) 评论(0) 推荐(0) 编辑
摘要: product_list = [ ('Iphone',5800), ('Mac Pro',9980), ('Bike',800), ('watch',10600), ('Coffee',31), ('AlexPython',80),]shop_list = []salary = input("Ple 阅读全文
posted @ 2016-11-25 22:41 ShinyBoy1 阅读(349) 评论(0) 推荐(0) 编辑